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

Re: [PATCH] git-remote: list branches in vertical lists

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 21, 2008, 16:49 UTC
Message-ID
<alpine.DEB.1.00.0810211847410.22125@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<48FDEA82.5050903@viscovery.net>
Hi,
On Tue, 21 Oct 2008, Johannes Sixt wrote:
Show 8 quoted lines
> Previously, branches were listed on a single line in each section. But 
> if there are many branches, then horizontal, line-wrapped lists are very 
> inconvenient to scan for a human. This makes the lists vertical, i.e one 
> branch per line is printed.
> 
> This does mean that users' scripts must be updated because the output 
> format changed, but the result is friendlier to the eye *and* easier to 
> parse.

My initial reaction to that was: add an option, and keep the old behavior then.

But on second thought: No script has any business scanning the output of git-remote. That command is a pure convenience wrapper, and scripts trying to list remote branches should use git show-ref instead.

So I'd say: replace the last comment with
	Since "git remote" is porcelain, we can easily make this 
	backwards-incompatible change.

Ciao, Dscho

Previous: Johannes SixtNext: Johannes Sixt
Message 2 of 3 in “git-remote: list branches in vertical lists”
  1. git-remote: list branches in vertical listsJohannes Sixt, Oct 21, 2008
  2. Johannes SchindelinOct 21, 2008
  3. Johannes SixtOct 22, 2008

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.