Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: how to hide some branches

From: Peter Krefting <hidden>
Date: 2016-06-15 22:45:42

Pascal Obry:
I'd like to hide some (not removing them).
Is there a solution for this?
git branch --no-merged

shows only the branches that has not been merged into your current
working branch. That might be one solution.

I don't know if it is possible to set it as a default option, but I
would also appreciate such a feature.


I use the "git branch --merged" to move away merged branches into a
different "namespace" (branch "a" becomes "merged/a"):

  for branch in $(git branch --merged master | egrep -v 'merged|master');
  do
    git branch -m "$branch" "merged/$branch"
  done

-- 
\\// Peter - http://www.softwolves.pp.se/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help