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:08 UTC
Message-ID
<7vtzspb3yt.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<alpine.LFD.0.98.0706301231200.1172@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 10 quoted lines
> Well, we have a more serious issue, that is related, but has nothing to do 
> with aliases.
>
> If you set an environment variable "diff.color=always", any script will 
> get that behaviour, and not work the way it might expect.
>
> My point being that this has nothing to do with "git-diff" vs "git diff", 
> and everything to do with default configurations. If you don't want people 
> to be able to change fixed behaviour, you'd need to have a way to disable 
> it.

That's exactly why we have told people to use plumbing in their scripts, and git-diff-tree does not look at diff.color.

Show 9 quoted lines
> Quite frankly, I think it's _easier_ to disable with "git xyzzy" than with 
> "git-xyzzy", but hey, not a big deal. With "git xyzzy", we could add a 
> generic flag like
>
> 	git - xyzzy
>
> to make the rule be that no configurations (_including_ aliases) are 
> allowed to override default behaviour, which is much harder with the 
> "git-xyzzy" format (since then it's invariably a per-command thing).
But that would break existing scripts wouldn't it?
Previous: Linus TorvaldsNext: Junio C Hamano
Message 12 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.