I just discovered a parameter --dirtyfor git describe, and it looks like it should do something very useful, that is, add a suffix to the output git describewhen the working tree is dirty, however this does not seem to be the case in some of my repositories:
$ git status
nothing to commit (working directory clean)
$ git describe
8.30rel-8-g9c1cbdb-dirty
I thought this might be because the working directory is dirty with respect to the tag, but this doesn't seem to be the case:
$ git status
nothing to commit (working directory clean)
$ git describe
1.4rel-0-gfedfe66-dirty
hg id, Mercurial, , + , , git, git describe --dirty, , , , :
Describe the working tree. It means describe HEAD and appends
<mark> (-dirty by default) if the working tree is dirty.
, --dirty, ?
, , git buckminster, nfs.
: , , , .
git diff --quiet HEAD , git describe , :
$ git status
nothing to commit (working directory clean)
$ git describe
8.30rel-8-g9c1cbdb-dirty
$ git diff
$ git describe
8.30rel-8-g9c1cbdb
, git describe dirty, gitk " , ", , , ---- filename ----.
:. , git-describe-dirty script, git describe --dirty, , , git update-index -q --refresh, .
git describe-dirty , , , git update-index -q --refresh ; git describe --dirty .