Re: Stamp Git commit id into file during build process
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jan 16, 2010, 21:26 UTC
- Message-ID
- <20100116212619.GB5299@spearce.org>
- In-Reply-To
- <a1138db31001161312i2c032c38tcc0fb162c61fbb35@mail.gmail.com>
Paul Richards <paul.richards@gmail.com> wrote:
Show 5 quoted lines
> > Take a look how for example git project and Linux kernel use "git describe" > > in GIT-VERSION-GEN script, and how they use GIT-VERSION-GEN script in the > > Makefile. > > Thanks, it appears though that "git describe" does not work in Cygwin git. :(
That's a serious bug. git describe should work fine on any system Git itself runs on; its written in pure C and with the exception of the --contains flag, doesn't rely on any external programs.
-- Shawn.