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

Re: Start deprecating "git-command" in favor of "git command"

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 30, 2007, 20:22 UTC
Message-ID
<7vlke1b3ai.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vy7i1b6bt.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Linus Torvalds <torvalds@linux-foundation.org> writes:
>
>> Anyway, while actually removing the "git-xyzzy" things is not practical 
>> right now, we can certainly start slowly to deprecate it internally inside 
>> git itself - in the shell scripts we use, and the test vectors.
>
> So I am somewhat negative on this, unless there is a way for
> scripts to say "Even though I say 'git foo', I do mean 'git foo'
> not whatever the user has aliased".

Having said that, I am not opposed to encourage distros to set gitexecdir to $(prefix)/libexec in their modified Makefile. There is no reason to contaminate a directory on end users' $PATH with hundreds of commands that begin with "git-" prefix.

In fact, I used to configure my copy of git with gitexecdir set to outside my $PATH when we first started pushing it to make sure everything works (I do not install git from distro on my machine so I know I have only one instance of bin/git in my path). It used to work, but I am no longer using that layout these days, so it is entirely possible that we might have broken the support along the way. And _that_ is worth fixing.

Previous: Junio C HamanoNext: Jeff King
Message 13 of 20 in “Start deprecating "git-command" in favor of "git command"”
  1. Linus TorvaldsJun 30, 2007
  2. Junio C HamanoJun 30, 2007
  3. Yann DirsonJun 30, 2007
  4. Junio C HamanoJul 1, 2007
  5. Linus TorvaldsJul 1, 2007
  6. Junio C HamanoJul 1, 2007
  7. Johannes SchindelinJul 1, 2007
  8. Junio C HamanoJul 1, 2007
  9. Nicolas PitreJul 3, 2007
  10. Junio C HamanoJul 3, 2007
  11. Linus TorvaldsJun 30, 2007
  12. Junio C HamanoJun 30, 2007
  13. Junio C HamanoJun 30, 2007
  14. Jeff KingJul 1, 2007
  15. Johannes SchindelinJul 1, 2007
  16. Josh TriplettJul 1, 2007
  17. waltJun 30, 2007
  18. Johannes SchindelinJun 30, 2007
  19. waltJun 30, 2007
  20. Yann DirsonJul 1, 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.