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-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.4 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,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 47E4F1F5AE for ; Sat, 19 Jun 2021 06:50:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233903AbhFSGwa (ORCPT ); Sat, 19 Jun 2021 02:52:30 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:62702 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233725AbhFSGw3 (ORCPT ); Sat, 19 Jun 2021 02:52:29 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 2F967CB43B; Sat, 19 Jun 2021 02:50:18 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=GPrKBaPH2AoxVIcfSGip6C7JIAM/v/eCsROSCK 9wus8=; b=sctnqKb4RHN/82fOanEgNXDZmK71IbvbixjD/DYYWCACReKPgoFD9F FDiWn8rrGGSXRfKziGfS2Xy8ks8rnEt0YbL342WadXxwokSA59u2Cpg3hkCoq765 iuAB6oLHIC5WobwxC3Z1BQq5tSYTAZUZ3TqzsFSDKqZwlJ+9uZY/E= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 25435CB436; Sat, 19 Jun 2021 02:50:18 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.196.36.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id A1D72CB435; Sat, 19 Jun 2021 02:50:17 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Eric Sunshine Cc: =?utf-8?B?xJBvw6BuIFRy4bqnbiBDw7RuZw==?= Danh , Git List , =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Bagas Sanjaya , Phillip Wood , Felipe Contreras Subject: Re: [PATCH v3 0/4] t: new helper test_line_count_cmd References: <20210615172038.28917-1-congdanhqx@gmail.com> <20210619013035.26313-1-congdanhqx@gmail.com> Date: Sat, 19 Jun 2021 15:50:17 +0900 In-Reply-To: (Eric Sunshine's message of "Sat, 19 Jun 2021 02:26:01 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 9B8F9ACA-D0CA-11EB-897E-8B3BC6D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Eric Sunshine writes: > Indeed, I have no problem seeing this as a new mode of > test_line_count() triggered by an option. In fact, I suggested exactly > that[1] when this idea first arose (except I named the option `-c` > rather than `-e`, but the latter is fine). However, my suggestion was > pretty much shot down[2] (and I don't entirely disagree with [2], > which is why I didn't pursue the idea in [1]). ;-) Yeah, I still am skeptical that we'd gain much by hiding the redirection to >actual behind the helper, so as I said in response to the v2 series, I am fine without this new helper or an enhanced test_line_count, but go with more use of test_must_be_empty etc.