From: Sverre Rabbelier <srabbelier@gmail.com>
To: kusmabite@gmail.com
Cc: Paul Richards <paul.richards@gmail.com>, git@vger.kernel.org
Subject: Re: Stamp Git commit id into file during build process
Date: Sat, 16 Jan 2010 20:17:07 +0100 [thread overview]
Message-ID: <fabb9a1e1001161117t6d572024yc5598be1b32ffcde@mail.gmail.com> (raw)
In-Reply-To: <40aa078e1001161114w5a65bebbhaf43317634899925@mail.gmail.com>
Heya,
On Sat, Jan 16, 2010 at 20:14, Erik Faye-Lund <kusmabite@googlemail.com> wrote:
> I think you are looking for "git rev-parse HEAD". This outputs the
> hash of HEAD as a single line on stdout. Or even better, you can use
> the "git describe"-tool, which gives a nice and short description of
> the commit relative to the most recent commit.
It would be better to have a look at gitattributes [0] instead.
[0] http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html#_tt_ident_tt
--
Cheers,
Sverre Rabbelier
next prev parent reply other threads:[~2010-01-16 19:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 18:50 Stamp Git commit id into file during build process Paul Richards
2010-01-16 19:14 ` Erik Faye-Lund
2010-01-16 19:15 ` Erik Faye-Lund
2010-01-16 19:17 ` Sverre Rabbelier [this message]
2010-01-16 19:22 ` Erik Faye-Lund
2010-01-16 19:29 ` Sverre Rabbelier
2010-01-16 19:35 ` Jakub Narebski
2010-01-16 21:12 ` Paul Richards
2010-01-16 21:26 ` Shawn O. Pearce
2010-01-16 21:27 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fabb9a1e1001161117t6d572024yc5598be1b32ffcde@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=git@vger.kernel.org \
--cc=kusmabite@gmail.com \
--cc=paul.richards@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).