Re: Stamp Git commit id into file during build process
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Jan 16, 2010, 19:22 UTC
- Message-ID
- <40aa078e1001161122k48f55807y3f01fa0d38e5cc93@mail.gmail.com>
- In-Reply-To
- <fabb9a1e1001161117t6d572024yc5598be1b32ffcde@mail.gmail.com>
On Sat, Jan 16, 2010 at 8:17 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 10 quoted lines
> 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. >
Since he's looking for a replacement for SubWCRev (as opposed to svn:keywords); not really.
-- Erik "kusma" Faye-Lund