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

Re: Improving the git remote command

From
PVPhilippe Vaucher <philippe.vaucher@gmail.com>
Date
Aug 26, 2014, 16:19 UTC
Message-ID
<CAGK7Mr7BPvV6oO_t4x_1m9sDtWBgPWUqDq+3kZx6rVYAhY+wqA@mail.gmail.com>
In-Reply-To
<20140826124027.GE29180@peff.net>
Show 6 quoted lines
> Perhaps "-v" should have been the default all along.  I do not use "git
> remote" myself, so I don't know if "-v" is what most people use. But
> changing the output of "git remote" now is probably a bad thing (I
> expect some people may depend on parsing it to get the list of remotes;
> they should probably use the git-config plumbing to do the same thing,
> but it's actually rather tricky to do it that way).
Just to be clear, the proposal is not about changing the output of "git remote".

Anyway, it got me curious about other git commands reguarding "list", and I was very surprised because I couldn't find another one. I mean "git remote" actually behaves like "git branch" and "git tag". I have no clue why I expect "list" to work with "git remote".

It's probably because "git branch" and "git tag" expect a name, and there "list" can only be expressed by "no name" or with some flags. On the other hand, "git remote" expects a subcommand (add, delete, etc) and there what logically maps to "list" is the subcommand "list", "no name" being more expected to produce a list of the subcommands.

Philippe
Previous: Jeff KingNext: Jeff King
Message 4 of 10 in “Improving the git remote command”
  1. Rémy HubscherAug 26, 2014
  2. Philippe VaucherAug 26, 2014
  3. Jeff KingAug 26, 2014
  4. Philippe VaucherAug 26, 2014
  5. Jeff KingAug 26, 2014
  6. Junio C HamanoAug 26, 2014
  7. Jeff KingAug 26, 2014
  8. David AguilarAug 27, 2014
  9. Junio C HamanoAug 27, 2014
  10. Keller, Jacob EAug 27, 2014

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.