From: Pete Harlan <pgit@pcharlan.com>
To: pascal@obry.net
Cc: git list <git@vger.kernel.org>
Subject: Re: how to hide some branches
Date: Sun, 30 Nov 2008 12:09:33 -0800 [thread overview]
Message-ID: <4932F2FD.9030603@pcharlan.com> (raw)
In-Reply-To: <493261C9.4040608@obry.net>
Pascal Obry wrote:
> Hello everyone,
>
> I create a new branch for every new feature/fix I work on. After some
> time I have many (too much) branch listed when doing:
>
> $ git branch
>
> I'd like to hide some (not removing them).
>
> Is there a solution for this?
>From a suggestion by Jakub Narebski, I use an alias "lb" that shows
the most recently-active 8 branches:
for-each-ref --format='%(refname:short)' \
--sort=-authordate --count=8 refs/heads/
--Pete
next prev parent reply other threads:[~2008-11-30 20:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-30 9:50 how to hide some branches Pascal Obry
2008-11-30 15:16 ` Alex Riesen
2008-11-30 20:09 ` Pete Harlan [this message]
2008-12-01 10:20 ` Pascal Obry
2008-12-01 8:01 ` Peter Krefting
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4932F2FD.9030603@pcharlan.com \
--to=pgit@pcharlan.com \
--cc=git@vger.kernel.org \
--cc=pascal@obry.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).