mhagger / git-imerge

Incremental merge for git
GNU General Public License v2.0
2.7k stars 125 forks source link

git imerge has no version information #31

Open eddyp opened 11 years ago

eddyp commented 11 years ago

With the rising popularity of git imerge, and the new fixes provided by newer versions in the repo, the need to have a version number (even if it is date based) becomes more needed.

 git imerge --version

should provide a version information so that users can know if they have an up to date version or not.

mhagger commented 11 years ago

Yes, you are right of course.

But given that development takes place on master in little bits, can you think of a way of implementing this that doesn't require the manual incrementing of a version number every time I merge something to master?

eddyp commented 11 years ago

How about a pre-commit hook that checks that for annotated tag commits the correct information is added? This with a helper script for tagging that automatically computes a timestamp based version number and refreshes the script source?

From what I can see the problem is the lack of 'official' versions, so maybe they should be added :)

eddyp commented 11 years ago

The helper script is not necessary, there is git describe.