git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Suggestion: "git describe" pretty format
@ 2018-08-13 14:26 Christoph Groth
  0 siblings, 0 replies; only message in thread
From: Christoph Groth @ 2018-08-13 14:26 UTC (permalink / raw)
  To: git

Hi,

Many projects use 'git archive' to generate tarballs, especially because
this functionality is exposed through gitlab/github and the like.  It's
also popular to base the version string on the output of 'git describe'
and its variants, for example 'git describe --first-parent --dirty'.

Now while it's possible to substitute various information into the
tarball using the export-subst machinery, there seems to be no way to
substitute the output of 'git describe' and its variants.  Specifically,
when the commit being archived is untagged, there seems no way to
mention an ancestral tag in the way of 'git describe'.

It seems to me that adding a pretty format for git describe would be
very useful.  Is there any technical reason that speaks against this?

Cheers,
Christoph

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-13 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 14:26 Suggestion: "git describe" pretty format Christoph Groth

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).