git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-describe recognize modified files
@ 2010-01-19  9:53 tzachi perelstein
  2010-01-19 10:35 ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: tzachi perelstein @ 2010-01-19  9:53 UTC (permalink / raw)
  To: git

I use git-describe to form a build version automatically. This allows me
to deliver temporary builds for testing without having to make manual
tags for them. The only thing that bothers me about this is that from
the output of git-describe I cannot tell if there are some modified
files in tree or not. In both cases I will get the same version. 

To solve this issue, in addition to git-describe, my do_version script
also run git-status, and if there are "modified:" files then it
concatenates the string "+dirty" to output of git-describe. This way by
looking at the version I'm able to know whether a specific version is
valid (checkout-able) or not.

It would be nice to have this option supported in git-describe IMO. I'm willing to implement that and submit a patch for review, but I'd like to hear your opinion first. 

Tzachi



      

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-19 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19  9:53 git-describe recognize modified files tzachi perelstein
2010-01-19 10:35 ` Johannes Schindelin
2010-01-19 12:21   ` Andreas Krey
2010-01-19 12:49     ` Jakub Narebski
2010-01-19 13:07       ` tzachi perelstein
2010-01-19 12:59   ` tzachi perelstein

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 NNTP newsgroup(s).