From: Erik Faye-Lund Date: Sat, 16 Jan 2010 19:22:38 GMT Subject: Re: Stamp Git commit id into file during build process Message-ID: <40aa078e1001161122k48f55807y3f01fa0d38e5cc93@mail.gmail.com> In-Reply-To: On Sat, Jan 16, 2010 at 8:17 PM, Sverre Rabbelier wrote: > Heya, > > On Sat, Jan 16, 2010 at 20:14, Erik Faye-Lund 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