Permalink
Browse files

Changed implementation of gitflow_all_branches() subtly, since "git b…

…ranch

-a" returns remote branches with a "remotes/" prefix. "git branch -r"
still returns branch names we are used to.
  • Loading branch information...
1 parent cf6e92a commit 4e11dd6f218ddaf76cc353f2c8ba495c1acb32fb @nvie committed Feb 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 gitflow-common
View
@@ -41,7 +41,7 @@ noflag() { local FLAG; eval FLAG='$FLAGS_'$1; [ $FLAG -ne $FLAGS_TRUE ]; }
# get all available branches
gitflow_local_branches() { git branch | sed 's/^[* ] //'; }
gitflow_remote_branches() { git branch -r | sed 's/^[* ] //'; }
-gitflow_all_branches() { git branch -a | sed 's/^[* ] //'; }
+gitflow_all_branches() { ( git branch; git branch -r) | sed 's/^[* ] //'; }
gitflow_all_tags() { git tag; }
# loading settings that can be overridden using git config

0 comments on commit 4e11dd6

Please sign in to comment.