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

Re: Deprecate git-fetch-pack?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 11, 2007, 22:35 UTC
Message-ID
<7vabpkbebj.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071111222117.GA7392@thunk.org>
Theodore Tso <tytso@mit.edu> writes:
Show 17 quoted lines
> On Sun, Nov 11, 2007 at 01:16:09PM -0800, Junio C Hamano wrote:
>> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> > This should be a non-issue.  We really should start deprecating 
>> > "git-<command>" in favour of "git <command>" for real.
>> >
>> > New users should not even be told that this is correct usage.
>> 
>> If you can write "git-commit" and "git commit" interchangeably
>> while you cannot say "git-cat-file" and are forced to say "git
>> cat-file", I suspect that would lead to a great confusion and
>> unhappy users.
>
> One of the reasons why I use git-diff and git-commit and in particular
> "git-rebase --interactive master" very often is that it allows my
> shell's bang completion to work.  (i.e., "!git-rebase").  If we tell
> people they can not use "git-rebase", and must instead use "git
> rebase" instead, I would consider that pretty annoying/obnoxious.
Oh, of course.

But my impression was that Johannes was talking about deprecating git-<foo> form only for plumbing, so that the users will only see git-<foo> for the Porcelain. That would not break your bang completion for the porcelain commands.

If Johannes was talking about deprecating all git-<foo> form, then that would indeed break your bang completion, but it has conceptually a much bigger problem. The topic was about fixing "a new user sees too many git commands and gets scared" problem. Deprecaing all git-<foo> form just replaces the problem with "a new user sees too many git subcommands and gets scared" problem, without solving anything.

Previous: Theodore TsoNext: Johannes Schindelin
Message 7 of 29 in “Deprecate git-fetch-pack?”
  1. Daniel BarkalowNov 10, 2007
  2. Junio C HamanoNov 11, 2007
  3. Ask Bjørn HansenNov 11, 2007
  4. Johannes SchindelinNov 11, 2007
  5. Junio C HamanoNov 11, 2007
  6. Theodore TsoNov 11, 2007
  7. Junio C HamanoNov 11, 2007
  8. Johannes SchindelinNov 11, 2007
  9. Theodore TsoNov 11, 2007
  10. Jakub NarebskiNov 12, 2007
  11. Jon LoeligerNov 12, 2007
  12. Johannes SchindelinNov 12, 2007
  13. Jon LoeligerNov 12, 2007
  14. Johannes SchindelinNov 12, 2007
  15. Jon LoeligerNov 12, 2007
  16. 1/2 Make the list of common commands more exclusiveTheodore Ts'o, Nov 12, 2007
  17. 2/2 Remove hint to use "git help -a"Theodore Ts'o, Nov 12, 2007
  18. Junio C HamanoNov 12, 2007
  19. Ping YinNov 12, 2007
  20. Theodore TsoNov 12, 2007
  21. Junio C HamanoNov 12, 2007
  22. Mike HommeyNov 12, 2007
  23. Johannes SchindelinNov 12, 2007
  24. Ask Bjørn HansenNov 12, 2007
  25. Andreas EricssonNov 12, 2007
  26. Theodore TsoNov 12, 2007
  27. Andreas EricssonNov 12, 2007
  28. Ask Bjørn HansenNov 12, 2007
  29. Mike HommeyNov 11, 2007

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.