[git-users] getting a list of branches

2010-08-24 Thread Ted
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

[git-users] Re: getting a list of branches

2010-08-24 Thread Konstantin Khomoutov
On Aug 24, 10:24 pm, Ted cecinemapasdera...@gmail.com 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

[git-users] Re: getting a list of branches

2010-08-24 Thread Ted
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

Re: [git-users] getting a list of branches

2010-08-24 Thread Rick DeNatale
On Tue, Aug 24, 2010 at 2:24 PM, Ted cecinemapasdera...@gmail.com 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

Re: [git-users] getting a list of branches

2010-08-24 Thread David Aguilar
On Aug 24, 2010, at 11:24 AM, Ted cecinemapasdera...@gmail.com 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.