Re: git branch -v output ambiguous for parser
- From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
- Date
- Jul 23, 2015, 13:44 UTC
- Message-ID
- <1437659074.25048.11.camel@kaarsemaker.net>
- In-Reply-To
- <CAByu6UVzsoK=OHkYv_zBCYf2YnBqx268TZ+_pi98N6pMt_NSgw@mail.gmail.com>
On do, 2015-07-23 at 15:29 +0200, Thibault Kruse wrote:
> Hi, > > trying to write a git wrapper, I wanted to parse the output of git branch -v
The output of git branch is not meant to be machine-parsed. Try using git for-each-ref :)
-- Dennis Kaarsemaker http://www.kaarsemaker.net