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

Re: [PATCH] worktree: treat "list" as default command

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2020, 16:36 UTC
Message-ID
<xmqqr1uizzwf.fsf@gitster.c.googlers.com>
In-Reply-To
<202006130730.05D7UB99010559@dandelion.mymedia.su>
Nicholas Guriev <guriev-ns@ya.ru> writes:
> Perceive simple "git worktree" without a subcommand as "git worktree list"
> for consistency with "git submodule" that already can work in such a way.
"git branch" works the same way, and probably "git remote", too?

"git config" doesn't work that way, though. Should it default to the list mode (rhetorical/tongue-in-cheek question---but it gives a hint for writing the justification to decide where to draw the line).

Previous: Nicholas GurievNext: Eric Sunshine
Message 2 of 3 in “worktree: treat "list" as default command”
  1. worktree: treat "list" as default commandNicholas Guriev, Jun 13, 2020
  2. Junio C HamanoJun 13, 2020
  3. Eric SunshineJun 14, 2020

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.