git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Pascal Obry
Message 5 of 5 in “how to hide some branches”
  1. Pascal ObryNov 30, 2008
  2. Alex RiesenNov 30, 2008
  3. Pete HarlanNov 30, 2008
  4. Pascal ObryDec 1, 2008
  5. Peter KreftingDec 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.