`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 something

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

2013-04-28 Thread Junio C Hamano
John Gallagher johnkgallag...@gmail.com 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

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

2013-04-28 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: John Gallagher johnkgallag...@gmail.com 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`,...