meaning of "Automatic date update in version.in" commits
Fiodar Stryzhniou via binutils
binutils@sourceware.org
Thu Sep 21 05:03:00 GMT 2017
I propose set date with git hook. With every commit create bfd/version.in before commit and vice versa.
Fiodar Stryzhniou
исходное сбщ
Тема: Re: meaning of "Automatic date update in version.in" commits
От: Andreas Schwab <schwab@linux-m68k.org>
Дата: 21.09.2017 00.35
On Sep 20 2017, Petr Ovtchenkov <ptr@void-ptr.info> wrote:
> You see:
>
> git show 3110f4be18a2
> commit 3110f4be18a2f3b9fcd9663ed1dd141bbd6ed14f
> Author: GDB Administrator <gdbadmin@sourceware.org>
> 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
> commit f625a739e567f0110b2675539b7a0e5d5f67c5dc
> Author: GDB Administrator <gdbadmin@sourceware.org>
> 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.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Binutils
mailing list