Does SmartGit have a way to set and autoincrement version numbers?
I read a little about tags and set this on my initial branch (to "5.7.0"). Will I need to manually set this tag or is there a plugin that will handle versioning for me, behind the scenes?
Git doesn't care about versions, only commit hashes. :-)
My solution was to write a pair of scripts that I use as a filter. These scripts look for the $Date$ and $Revision$ keywords and extend them with the date and the version (tag) respectively.
In my
~/.gitconfig
file I have the following;These are the scripts (written in Python)
and
In the
.gitattributes
file in the repository I specify which files should have their keywords updated, e.g.:After checking in a new version, I set a version number using
git tag
. Then I run a script to update all the files that have keywords;