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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_CSS,URIBL_CSS_A shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 88A271F4D7 for ; Mon, 23 May 2022 08:10:54 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.b="lxph7vPP"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbiEWIFU (ORCPT ); Mon, 23 May 2022 04:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231593AbiEWIFO (ORCPT ); Mon, 23 May 2022 04:05:14 -0400 Received: from pb-sasl-trial21.pobox.com (pb-sasl-trial21.pobox.com [173.228.157.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C1C13DCF for ; Mon, 23 May 2022 01:05:13 -0700 (PDT) Received: from pb-sasl-trial21.pobox.com (localhost.local [127.0.0.1]) by pb-sasl-trial21.pobox.com (Postfix) with ESMTP id 8A9D727309; Mon, 23 May 2022 04:05:10 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=sasl; bh=ZnawnYw+vVGpu4SZkI4vdi8gIj0=; b=lxph7vPPbz/4lMjt3mSu 96MlLtjQ6AX5q/BkUIEpK5I40b+3YrCjd1vQ5REUHaGsinzoFJsO0gXZQngc3RId Cj2b/8EM7aqul0jGeVAOICXaIiy4FzF8CgaEsvH+jfhpNN+lU1rJl8qkIQ1Faz/R dMKXUYS3eV+JhF6K+w8LYBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; q=dns; s=sasl; b=PYGXbv8H3DCQhDsH+GSCU8zN1cRF0Z0lrSGFWos7dToL6M jYqnMTF3FpPvDRKgPD4wnQeqO//Vz+ZTouLint7t+qvXcdbM+/MK7Uu7+znjPEq/ VkhAjpZleNYV4kuteeEgRRFXeHT96zuVdkU1mVc5bqquAl4r+WqtI6aX0f6VI= Received: from pb-smtp21.sea.icgroup.com (pb-smtp21.pobox.com [10.110.30.21]) by pb-sasl-trial21.pobox.com (Postfix) with ESMTP id 7121527306; Mon, 23 May 2022 04:05:10 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.83.92.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 0DE141AE84F; Mon, 23 May 2022 04:05:07 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Jiang Xin Cc: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Git List , Jiang Xin , Alexander Shopov , Jordi Mas , Matthias =?utf-8?Q?R=C3=BCster?= , Jimmy Angelakos , Christopher =?utf-8?Q?D=C3=ADaz?= , =?utf-8?Q?Jean-No=C3=ABl?= Avila , Bagas Sanjaya , Alessandro Menti , Gwan-gyeong Mun , Arusekk , Daniel Santos , Dimitriy Ryazantcev , Peter Krefting , Emir SARI , =?utf-8?B?VHLhuqduIE5n4buNYyBRdcOibg==?= , Fangyi Zhou , Yi-Jyun Pan Subject: Re: [PATCH v3 1/9] Makefile: sort "po/git.pot" by file location References: <20220519081548.3380-1-worldhello.net@gmail.com> <20220523012531.4505-2-worldhello.net@gmail.com> Date: Mon, 23 May 2022 01:05:05 -0700 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: 0F1357EE-DA6F-11EC-BE0F-CBA7845BAAA9-77302942!pb-smtp21.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Jiang Xin writes: > From: Jiang Xin > > We will feed xgettext with more C souce files and in different order in "source" > subsequent commit. To generate a stable "po/git.pot" regardless of the > number and order of input source files, we add a new option > "--sort-by-file" to xgettext program. Probably: ... we pass the option "--sort-by-file" > With this update, the newly generated "po/git.pot" will has the same "will have" > entries while in a different order. > > With the help of a custom diff driver as shown below, > > git config --global diff.gettext-fmt.textconv \ > "msgcat --no-location --sort-by-file" > > and appending a new entry "*.po diff=gettext-fmt" to git attributes, > we can see that there are no substantial changes in "po/git.pot". > > We won't checkin the newly generated "po/git.pot", because we will > remove it from tree in a later commit. > > Signed-off-by: Jiang Xin > Signed-off-by: Junio C Hamano This has no input from me (yet), so technically it is a bit premature to add my sign-off here. It wouldn't make a difference to the end result, though ;-) > --- > Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Makefile b/Makefile > index f8bccfab5e..83e968e2a4 100644 > --- a/Makefile > +++ b/Makefile > @@ -2706,6 +2706,7 @@ XGETTEXT_FLAGS = \ > --force-po \ > --add-comments=TRANSLATORS: \ > --msgid-bugs-address="Git Mailing List " \ > + --sort-by-file \ > --from-code=UTF-8 > XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --language=C \ > --keyword=_ --keyword=N_ --keyword="Q_:1,2"