Permalink
Browse files

Update __git_flow_list_remote_features to use prefix config.

Use gitflow's feature prefix configuration option when fetching remote feature branches. This is used to determine which remote feature branches are available when completing 'feature track'.
  • Loading branch information...
1 parent 7f3a479 commit 289fb035906cb3d3d4c6917681997d410f135a3e @bobthecow bobthecow committed Sep 28, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 git-flow-completion.bash
View
@@ -112,7 +112,12 @@ __git_flow_list_features ()
__git_flow_list_remote_features ()
{
- git branch -r 2> /dev/null | grep 'origin/feature/' | awk '{ sub(/^origin\/feature\//, "", $1); print }'
+ git branch -r 2> /dev/null | grep "origin/$(__git_flow_feature_prefix)" | awk '{ sub(/^origin\/$(__git_flow_feature_prefix)/, "", $1); print }'
+}
+
+__git_flow_feature_prefix ()
+{
+ git config gitflow.prefix.feature 2> /dev/null || echo "feature/"
}
__git_flow_release ()

0 comments on commit 289fb03

Please sign in to comment.