Feature/implement version filter #186

Open
wants to merge 4 commits into
from

Conversation

Projects
None yet
1 participant

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

petervanderdoes added some commits Jan 4, 2012

@petervanderdoes petervanderdoes Implements universal run_filter_hook function
Signed-off-by: Peter van der Does <peter@avirtualhome.com>
54b01d5
@petervanderdoes petervanderdoes Adds filter to git flow hotfix start
Example of the filter script added.

Signed-off-by: Peter van der Does <peter@avirtualhome.com>
22ccaed
@petervanderdoes petervanderdoes Adds filter hook version in for release start
Also adds sample script.

Signed-off-by: Peter van der Does <peter@avirtualhome.com>
104af03
@petervanderdoes petervanderdoes Adds some comments to the sample scripts
Signed-off-by: Peter van der Does <peter@avirtualhome.com>
a0a40e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment