On Aug 24, 2010, at 11:24 AM, Ted wrote:
Is there some way to specifically get a list of branches, without the
annotation that `git branch` normally adds? I'd like to write a
script that loops over branches, but it shouldn't be dependent on the
presentation format.
$ git for-each-ref refs/he
On Tue, Aug 24, 2010 at 2:24 PM, Ted wrote:
> Is there some way to specifically get a list of branches, without the
> annotation that `git branch` normally adds? I'd like to write a
> script that loops over branches, but it shouldn't be dependent on the
> presentation format.
ls -1 .git/refs/hea
I don't seem to have one of those. I guess I could just use the
contents of `.git/refs/heads`, but it would be better to use an API of
some sort than to rely on git's internal file structure. Though that
does seem to be git's API in some cases, so maybe it's okay? How to
know?
Cheers
-Ted
On A
On Aug 24, 10:24 pm, Ted wrote:
> Is there some way to specifically get a list of branches, without the
> annotation that `git branch` normally adds? I'd like to write a
> script that loops over branches, but it shouldn't be dependent on the
> presentation format.
It appears that you could parse
Is there some way to specifically get a list of branches, without the
annotation that `git branch` normally adds? I'd like to write a
script that loops over branches, but it shouldn't be dependent on the
presentation format.
--
You received this message because you are subscribed to the Google G