I think I am using the "https://github.com/nvie/gitflow", if that is the one which comes within the Smartgit GUI program.
Every time I to commit something, I update the 'build' number. Example: 2.6.0-77 to 2.6.0-78
This is already implemented to hook the pre-commit and increment the build number, but how to create a hook to hook the gitflow hotfix finish and to increment the hotfix version number? Example: 2.6.0-70 to 2.6.1-70
The code to increment the hotfix version is already done. We just need to run:
githooks/updateVersion.sh patch
Then, we got 2.6.0-70 to 2.6.1-70 over the project. This code is implemented here: https://github.com/evandrocoan/.versioning
There, the pre-commit, post-commit hooks are implemented.
If it cannot to be done, we could to do it on the pre-commit hook? We just need to know when we are committing something ordinary, and when we are committing the gitflow finish hotfix.