Re: [git-users] Does git have a version string macro?

2010-03-03 Thread Michael P. Soulier
On 03/03/10 charlesmanning said: > I'm currently using cvs but am moving to git. > > One thing I find very useful with cvs are the $Id and similar macros > which I put in a string and then print out as part of the status > report. > > const char * foo_version="$Id"; > ... > printf("Using version

[git-users] Does git have a version string macro?

2010-03-03 Thread charlesmanning
I'm currently using cvs but am moving to git. One thing I find very useful with cvs are the $Id and similar macros which I put in a string and then print out as part of the status report. const char * foo_version="$Id"; ... printf("Using version %s\n", foo_version); This really helps when suppor