Re: `git describe` in an export-subst format string?

2013-04-28 Thread Junio C Hamano
Junio C Hamano writes: > John Gallagher writes: > >> The actual thing I want to do is >> something like this: >> >> static const char *project_version = "$Format:...$"; >> >> where "..." is something that `git archive` will replace with the >> output of `git describe`,... > > You need to find

Re: `git describe` in an export-subst format string?

2013-04-28 Thread Junio C Hamano
John Gallagher writes: > The actual thing I want to do is > something like this: > > static const char *project_version = "$Format:...$"; > > where "..." is something that `git archive` will replace with the > output of `git describe`,... You need to find an appropriate pair of placeholders th

`git describe` in an export-subst format string?

2013-04-28 Thread John Gallagher
I originally posted this as a question about getting `git log` to output the same thing that `git describe` does to the git-users mailing list, and was directed here. The actual thing I want to do is something like this: static const char *project_version = "$Format:...$"; where "..." is someth