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

Re: [FILE] Docs update

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 24, 2005, 21:44 UTC
Message-ID
<Pine.LNX.4.58.0504241438280.15879@ppc970.osdl.org>
In-Reply-To
<426BF790.9070406@dgreaves.com>
On Sun, 24 Apr 2005, David Greaves wrote:
> 
> And I've attached this as a file rather than a patch to make it easier 
> for people to read.
Suggestion: move "diff-tree" up above "diff-cache", since as it is now, 
you explain "diff-cache" in terms of diff-tree, before you've even 
explained diff-tree in the first place.
Also, the current diff-tree has an extension:
	################################################################
	diff-tree
	        diff-tree [-r] [-z] <tree/commit> <tree/commit> [pattern]*
	Compares the content and mode of the blobs found via two tree objects.

where the "pattern" arguments are the pathnames you are interested in seeing the differences of.

For example, if you're only interested in differences in some architecture-specific files, you might do

	diff-tree -r <tree/commit> <tree/commit> arch/ia64 include/asm-ia64
and it will only show you what changed in those two directories.
Or if you are searching for what changed in just kernel/sched.c, just do
	diff-tree -r <tree/commit> <tree/commit> kernel/sched.c
and it will ignore all differences to other files.

The pattern is always the prefix, and is matched exactly (ie there are no wildcards - although matching a directory, which it does support, can obviously be seen as a "wildcard" for all the files under that directory).

		Linus
Previous: Junio C HamanoNext: David Greaves
Message 3 of 5 in “[FILE] Docs update”
  1. David GreavesApr 24, 2005
  2. Junio C HamanoApr 24, 2005
  3. Linus TorvaldsApr 24, 2005
  4. David GreavesApr 27, 2005
  5. Daniel BarkalowApr 25, 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.