Re: how to hide some branches
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Dec 1, 2008, 08:01 UTC
- Message-ID
- <Pine.LNX.4.64.0812010857360.5440@ds9.cixit.se>
- In-Reply-To
- <493261C9.4040608@obry.net>
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/