I am writing some scripts and sending them to some friends, etc…
When i used SVN, i used to put the $Id tag on the file (pupulated by Eclipse) so i could clearly identify the file.
However, I can’t find a similar way to do it with egit/eclipse.
Any recommendation/help/suggestions?
Thanks
First, Git doesn’t have a keyword substitution mechanism:
See “Does git have anything like
svn propset svn:keywordsor pre-/post-commit hooks?““Moving from CVS to git:
$Id:$equivalent?” explains thatgit describeis the prefered way to reference not just a file version, but the whole repo commit (which includes that specific file version)However, when looking at JGit (used by Egit), I don’t see any ‘
describe‘ class.So it might not be supported directly by EGit.