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

Re: Redirect "git" subcommand to itself?

From
Jeff King <peff@peff.net>
Date
May 28, 2015, 05:22 UTC
Message-ID
<20150528052227.GA24895@peff.net>
In-Reply-To
<xmqqoal5ii21.fsf@gitster.dls.corp.google.com>
On Wed, May 27, 2015 at 06:53:26PM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> > I wonder if we want to make a "git" subcommand, which behaves exactly
> > the same as git itself?
> > Then "git git git status" would just return the same as "git status".
> 
> A few unrelated thoughts.
> 
>  * Perhaps we should omit 'git' from these advice-texts?  E.g.
> 
>      use "revert --abort" to cancel
> 
>    I dunno.

Please don't. You help the set of people who type "git" and then paste the rest of the command at the expense of people who just paste the whole command. We don't know the relative numbers of those people, but we know there is at least 1 in each group. ;)

-Peff
Previous: Junio C HamanoNext: Christian Neukirchen
Message 3 of 11 in “Redirect "git" subcommand to itself?”
  1. Stefan BellerMay 28, 2015
  2. Junio C HamanoMay 28, 2015
  3. Jeff KingMay 28, 2015
  4. Christian NeukirchenMay 29, 2015
  5. Aaron SchrabMay 29, 2015
  6. Junio C HamanoMay 29, 2015
  7. Stefan BellerMay 29, 2015
  8. Christian NeukirchenMay 29, 2015
  9. Junio C HamanoMay 29, 2015
  10. Konstantin KhomoutovMay 28, 2015
  11. Matthieu MoyMay 28, 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.