Commit 4e11dd6f authored by Vincent Driessen's avatar Vincent Driessen

Changed implementation of gitflow_all_branches() subtly, since "git branch

-a" returns remote branches with a "remotes/" prefix. "git branch -r"
still returns branch names we are used to.
parent cf6e92ab
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment