git-flow-completion
git-flow-completion copied to clipboard
Add bugfix branching support
petervanderdoes/gitflow-avh added bugfix branching support, it should work like a feature branch, but only for bugs
I'm not opposed to adding completion specifically for gitflow-avh, but I'd prefer it to be conditional on the version of gitflow the user has installed. Any ideas on how to do that so non-avh users don't get spurious completions?
Besides bugfix there are also options within existing commands that are available in petervanderdoes/gitflow-avh and not in the nvie version. So the basic solution would be to split the completions up. I don't see a big problem in that as the original gitflow doesn't seem to change anymore.
I do understand this is easier said than done.
One option to check for the AVH version would be running git flow version
and checking for the string AVH.
In POSIX shell this would be:
#!/bin/sh
VERSION=`git flow version`
case "$VERSION" in
*AVH*) isAVH="yes" ;;
*) isAVH="no" ;;
esac