From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id AEEEF1F4B4 for ; Wed, 28 Oct 2020 01:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726085AbgJ1Bic (ORCPT ); Tue, 27 Oct 2020 21:38:32 -0400 Received: from mail-40132.protonmail.ch ([185.70.40.132]:52233 "EHLO mail-40132.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1833053AbgJ0XqA (ORCPT ); Tue, 27 Oct 2020 19:46:00 -0400 Date: Tue, 27 Oct 2020 23:45:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1603842356; bh=zOA7GZzYzdgafX7216BNlWl6/XpvW+HcgP6Ndi9M/es=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=tB23PfSwGqR/J6/XuAzJ9vGwv28FUPdWZYZKgfHGN6p5XIKTyy3Jq1QutsMcMo2OG D4UZ342e2kKVGA7XKRf4ENdfCjcyMOWJ8mg7+fkbZjT2+EkTSxxglLa9RiMIYaF7u5 pfO41sh6jkp4ga/OZRorYXB6uVhWpmyAEMlbFJEU= To: Jonathan Nieder From: Joey Salazar Cc: Junio C Hamano , "git@vger.kernel.org" Reply-To: Joey Salazar Subject: Re: [OUTREACHY][PATCH v2] t7006: Use test_path_is_* functions in test script Message-ID: In-Reply-To: <20201027001427.GG2645313@google.com> References: <20201026205028.GC2645313@google.com> <20201026220228.GD2645313@google.com> <20201027001427.GG2645313@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Jonathan Nieder wrote: > > If `if test -n '$pager_wanted'` is checking if pager_wanted=3Dtrue > > before diagnosing core.pager_used, then would; > > For other instances when '$pager_wanted' is not empty then `test_path_i= s_file` > > will diagnose the directory and print a message. > > be more accurate? > > Yes, but because it restates what the patch says instead of describing > the "why", it's at the wrong level of abstraction. > I think what would make sense is to add a second paragraph describing > why the existing code uses ${if_local_config} and why what the new > code is doing is better. I see, thank you. I'm now thinking of a paragraph like this (thank you Emil= y Shaffer for your guidance in the IRC channel); Messages from checks to `${if_local_config}` are also printed when the result is false, which can be confusing. Improve readability by removing `${if_local_config}` checks and print messages only when a pager is wanted. > Thanks, > Jonathan Thank you for your patient input and feedback.