Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 4e11dd6f218ddaf76cc353f2c8ba495c1acb32fb 1 parent cf6e92a
@nvie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gitflow-common
View
2  gitflow-common
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.