[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