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

Re: [PATCH 0/2] diff-tree/diff-cache helper

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 26, 2005, 01:38 UTC
Message-ID
<Pine.LNX.4.58.0504251832480.18901@ppc970.osdl.org>
In-Reply-To
<7v1x8zsamn.fsf_-_@assigned-by-dhcp.cox.net>
On Sun, 24 Apr 2005, Junio C Hamano wrote:
Show 5 quoted lines
>
> I use a set of small scripts [*1*] directly on top of the core
> git, which needed to make patches out of diff-tree and
> diff-cache output.  Its output is compatible with what show-diff
> produces.
Good, applied.

This also makes me think that we should just make "show-diff" show the same format, at which point show-diff actually matches all the other tools, and it is likely to make show-diff more useful to boot.

The thing I personally use "show-diff" for these days is actually just to check whether I have anything dirty in my tree, and then it would actually be preferable to just get the filenaname printout (in the same old "diff-cache" format) rather than the full diff.

Maybe rename the "show-diff" command to be "cache-diff", and if somebody wants the old "show-diff" thing, just have a script that does

	#!/bin/sh
	cache-diff | diff-tree-helper
and nothing more.

Talking about renaming, at some point we really should prepend "git-" to all the git commands. I didn't want to do the extra typing when I started out and was unsure about the name, but hey, by now we really should.

Junio, what do you think?
		Linus
Previous: Junio C HamanoNext: Nicolas Pitre
Message 9 of 22 in “Re: [GIT PATCH] Selective diff-tree”
  1. Linus TorvaldsApr 24, 2005
  2. David WoodhouseApr 24, 2005
  3. Linus TorvaldsApr 24, 2005
  4. Junio C HamanoApr 24, 2005
  5. Linus TorvaldsApr 24, 2005
  6. 0/2 diff-tree/diff-cache helperJunio C Hamano, Apr 25, 2005
  7. 1/2 Split external diff command interface to a separate file.Junio C Hamano, Apr 25, 2005
  8. 2/2 Introduce diff-tree-helper.Junio C Hamano, Apr 25, 2005
  9. Linus TorvaldsApr 26, 2005
  10. Nicolas PitreApr 26, 2005
  11. Junio C HamanoApr 26, 2005
  12. Diff-tree-helper take two.Junio C Hamano, Apr 26, 2005
  13. Add -r flag to show-diff for diff-cache/diff-tree like output.Junio C Hamano, Apr 26, 2005
  14. Linus TorvaldsApr 26, 2005
  15. Junio C HamanoApr 26, 2005
  16. Linus TorvaldsApr 26, 2005
  17. Junio C HamanoApr 27, 2005
  18. Linus TorvaldsApr 27, 2005
  19. diff-cache/tree compatible output for show-diff (take 2).Junio C Hamano, Apr 26, 2005
  20. Linus TorvaldsApr 27, 2005
  21. Linus TorvaldsApr 27, 2005
  22. Linus TorvaldsApr 27, 2005

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.