This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Can the automatic daily update commits be stopped?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Joel Brobecker <brobecker at adacore dot com>, Fred Cooke <fred dot cooke at gmail dot com>, David Howells <dhowells at redhat dot com>, binutils <binutils at sourceware dot org>, nick clifton <nickc at redhat dot com>
- Date: Tue, 6 Jan 2015 05:28:33 -0800
- Subject: Re: Can the automatic daily update commits be stopped?
- Authentication-results: sourceware.org; auth=none
- References: <20428 dot 1420542531 at warthog dot procyon dot org dot uk> <CABZhLO-HSOL2HHPr3Dd36W1GESDn-Dn0attv4DPQTS61BtmQcg at mail dot gmail dot com> <20150106113941 dot GW5177 at adacore dot com> <87iogkt5u1 dot fsf at igel dot home>
On Tue, Jan 6, 2015 at 5:08 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Joel Brobecker <brobecker@adacore.com> writes:
>
>> Instead of using the date, how about we use the SHA1, or else
>> the output of "git describe".
>
> The latter won't quite work before the release or on master, since there
> is no related tag.
>
> $ git describe --tags origin/master
> readline_4_0-82304-g533d0af
>
We can use
[hjl@gnu-tools-1 binutils-gdb]$ echo "on $(git name-rev --name-only
HEAD) commit $(git log -1 --pretty=%H)"
on master commit 533d0af0b8a8127b6f189222fc57aa11ce7aab2c
[hjl@gnu-tools-1 binutils-gdb]$
for version. We add remote git repo URL with
[hjl@gnu-tools-1 binutils-gdb]$ git remote -v | grep fetch | awk '{ print $2}'
ssh://hjl@sourceware.org/git/binutils-gdb.git
[hjl@gnu-tools-1 binutils-gdb]$
--
H.J.