Re: how to hide some branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux