From: Jakub Narebski <jnareb@gmail.com>
To: Paul Gardiner <osronline@glidos.net>
Cc: git@vger.kernel.org
Subject: Re: Best way to specify all local branches and all remote branches.
Date: Mon, 11 Feb 2008 13:34:47 -0800 (PST) [thread overview]
Message-ID: <m3abm7dvp1.fsf@localhost.localdomain> (raw)
In-Reply-To: <47B0B775.1050401@glidos.net>
Paul Gardiner <osronline@glidos.net> writes:
> Johannes Schindelin wrote:
>> On Mon, 11 Feb 2008, Jakub Narebski wrote:
>>
>>> git-filter-branch [...] should support --all.
>>
>> It does.
>
> Yep, it does. I'd forgotten how to drive the shell. It works if
> I put -- --all.
>
> Turns out that isn't what I want though. I want just the local
> branches. Still can't find a way to do it other than my cd/ls
> thing.
I wrote: git-for-each-ref(1). See documentation, please.
$(git for-each-ref --shell --format="%(refname)" "refs/heads/*")
--
Jakub Narebski
Poland
ShadeHawk on #git
prev parent reply other threads:[~2008-02-11 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 18:51 Best way to specify all local branches and all remote branches Paul Gardiner
2008-02-11 19:10 ` Jakub Narebski
2008-02-11 19:40 ` Paul Gardiner
2008-02-11 20:23 ` Johannes Schindelin
2008-02-11 21:00 ` Paul Gardiner
2008-02-11 21:34 ` Jakub Narebski [this message]
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=m3abm7dvp1.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=osronline@glidos.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).