[5/5] Add commit-id to version
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Apr 17, 2005, 15:37 UTC
- Message-ID
- <Pine.LNX.4.21.0504171135240.30848-100000@iabervon.org>
- In-Reply-To
- <Pine.LNX.4.21.0504171108060.30848-100000@iabervon.org>
For people who run intermediate versions of git, it is useful to know exactly which post-release version you've installed. This adds the commit-id to the version info, so you can tell exactly, provided you make sure to commit before installing.
Signed-Off-By: Daniel Barkalow <barkalow@iabervon.org>
Index: Makefile =================================================================== --- 08f7700831e056ad710af69f91e3a8a705b6b2b1/Makefile (mode:100644 sha1:a60fa46404c0487158d232bd021e4798bc8df8de) +++ 6467ed39f19b48563ff25782ebe2c6f951b0af3c/Makefile (mode:100644 sha1:0e84e3cd12f836602b420c197e08fabefe975493) @@ -50,7 +50,7 @@ @echo Generating gitversion.sh... @rm -f $@ @echo "#!/bin/sh" > $@ - @echo "echo \"$(shell cat $(VERSION))\"" >> $@ + @echo "echo \"$(shell cat $(VERSION)) $(shell commit-id)\"" >> $@ @chmod +x $@ clean: