nvie/gitflow — pull request #186 by petervanderdoes (2012-01-04 20:31:38+00:00)
Title: Feature/implement version filter

Issue #129 asks to "add version number auto-increment support". Instead of having users to adhere to a given scheme I wrote a filter hook for the following commands:
git flow release start
git flow hotfix start

## Explanation of the filter implementation.

* A universal function is created called run_filter_hook
* Naming conventions of the filter scripts `filter-flow-{command}` For example `filter-flow-hotfix-start-version`
* The filter hook function is called with the 1st parameter being the {command} and the 2nd parameter being the value that needs to be passed to the script.
* To keep in line with the implementation of the hooks implementation, I used the HOOKS_DIR setup as done in pull request #185
* If the called filter script doesn't exist or is not executable, the returned value is the same as the received one.

## Filter names used
filter-flow-hotfix-start-version
filter-flow-release-start-version