git-imerge icon indicating copy to clipboard operation
git-imerge copied to clipboard

git imerge has no version information

Open eddyp opened this issue 12 years ago • 3 comments

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.

eddyp avatar Aug 10 '13 05:08 eddyp

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?

mhagger avatar Aug 10 '13 06:08 mhagger

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 avatar Aug 10 '13 09:08 eddyp

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

eddyp avatar Aug 20 '13 05:08 eddyp