git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Thibault Kruse
Message 2 of 2 in “git branch -v output ambiguous for parser”
  1. Thibault KruseJul 23, 2015
  2. Dennis KaarsemakerJul 23, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.