From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21809 invoked by alias); 21 Sep 2017 05:03:27 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13514 invoked by uid 89); 21 Sep 2017 04:58:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-22.0 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,URIBL_SBL autolearn=ham version=3.3.2 spammy=H*F:D*mail.ru, HAuthentication-Results:smtp.auth, H*x:Version, H*UA:Version X-Spam-User: qpsmtpd, 2 recipients X-HELO: smtp46.i.mail.ru Received: from smtp46.i.mail.ru (HELO smtp46.i.mail.ru) (94.100.177.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Sep 2017 04:58:41 +0000 Received: by smtp46.i.mail.ru with esmtpa (envelope-from ) id 1dutZM-0000YB-DJ; Thu, 21 Sep 2017 07:58:39 +0300 From: "Fiodar Stryzhniou via gdb" Reply-To: "Fiodar Stryzhniou" Reply-to: "Fiodar Stryzhniou" To: Andreas Schwab Cc: Petr Ovtchenkov , binutils@sourceware.org, Joel Brobecker , Matthias Klose , gdb@sourceware.org Subject: RE: meaning of "Automatic date update in version.in" commits Date: Thu, 21 Sep 2017 05:03:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Results: smtp46.i.mail.ru; auth=pass smtp.auth=fedor_qd@mail.ru smtp.mailfrom=fedor_qd@mail.ru X-7FA49CB5: 0D63561A33F958A590260EF7B2B6D70A90992EF84B1AEDFE6D1C0D7EDA2A643A725E5C173C3A84C3EBF4D8D28E8B690396142313C988C4622B32DCB92A8600C6C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: FC547C7CF1F5AE425248AA0DA9BED2DF42001657F39E1CABC4F799022D6B017A1D7CDC85BFA95FE562518B19441D92E8C77752E0C033A69ED27BFD43190D92F932C4F7A3481ED39F3453F38A29522196 X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00070.txt.bz2 I propose set date with git hook. With every commit create bfd/version.in b= efore commit and vice versa. Fiodar Stryzhniou =D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=B1=D1=89 =D0=A2=D0=B5=D0=BC=D0=B0: Re: meaning of "Automatic date update in version.= in" commits =D0=9E=D1=82: Andreas Schwab =D0=94=D0=B0=D1=82=D0=B0: 21.09.2017 00.35 On Sep 20 2017, Petr Ovtchenkov wrote: > You see: > > git show 3110f4be18a2 > commit 3110f4be18a2f3b9fcd9663ed1dd141bbd6ed14f > Author: GDB Administrator > Date: Wed Sep 20 00:01:01 2017 +0000 > > Automatic date update in version.in > > diff --git a/bfd/version.h b/bfd/version.h > index 3405e42..955269f 100644 > --- a/bfd/version.h > +++ b/bfd/version.h > @@ -1,4 +1,4 @@ > -#define BFD_VERSION_DATE 20170919 > +#define BFD_VERSION_DATE 20170920 > #define BFD_VERSION @bfd_version@ > #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ > #define REPORT_BUGS_TO @report_bugs_to@ > > git show f625a739=20=20=20=20=20 > commit f625a739e567f0110b2675539b7a0e5d5f67c5dc > Author: GDB Administrator > Date: Wed Sep 20 00:01:22 2017 +0000 > > Automatic date update in version.in > > diff --git a/bfd/version.h b/bfd/version.h > index 3405e42..955269f 100644 > --- a/bfd/version.h > +++ b/bfd/version.h > @@ -1,4 +1,4 @@ > -#define BFD_VERSION_DATE 20170919 > +#define BFD_VERSION_DATE 20170920 > #define BFD_VERSION @bfd_version@ > #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ > #define REPORT_BUGS_TO @report_bugs_to@ > > git diff 3110f4be18a2 f625a739 > ... > Ooops.... > > This approch produce ambiguity, but try to conceal it. You look at two different snapshots. What do you expect? Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."