<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Many people follow current trunk, and we need to have precise version<br>
information for that when they report a bug. We don't want to regularly<br>
tag stuff just to keep reported version information up to date.<br></blockquote><div><br></div><div>This is already done using --dirty. I generates all the information you need.</div><div><br></div><div>You can generate whatever information you wish. For example, if total trazability of the user is what you want:</div><div>base=$(git merge-base github/master HEAD)</div><div>echo $(git describe --tags $base)-$(git log --oneline $base..HEAD | wc -l)-$(git log --oneline | head -n1 | cut -c-8)<br></div><div><br></div><div>That would give you v1.0-rc1-5-gd66a89f-4-9f0e84a -> base tag, commit count from the base to the forking commit, hash of that commit, number of commits since fork, hash of the commit.</div><div><br></div><div>You could even add a -dirty if you wish to to tell you if that 4th commit after the fork has been compiled cleanly or not.</div></div></div>