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

Re: [PATCH] Cleanup git-diff documentation

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 15, 2006, 10:03 UTC
Message-ID
<eltroi$b4q$3@sea.gmane.org>
In-Reply-To
<9A80051B-1F6B-4FFD-B33F-84121D3A422F@silverinsanity.com>
Brian Gernhardt wrote:
Show 5 quoted lines
> -This command shows changes between four combinations of states.
> +Show changes between two trees, a tree and the working tree, a
> +tree and the index file, or the index file and the working tree.
> +The combination of what is compared with what is determined by
> +the number of trees given to the command.

You talk here about "number of _trees_" while later you use <commit>, not <tree> or <tree-ish>. Only at the very end you say that <commit> (<commit-ish> because you can use tags as well) can be replaced by any <tree-ish>.

That said, I like this clarification, especially the fact that I don't have to go to git-diff-tree(1) to find diff options.

Show 9 quoted lines
> 'git-diff' [--options] [--] [<path>...]::
> @@ -25,11 +28,11 @@ This command shows changes between four  
> combinations of states.
> 'git-diff' [--options] --cached [<commit>] [--] [<path>...]::
>         This form is to view the changes you staged for the next
> -       commit relative to the named <tree-ish>.  Typically you
> +       commit relative to the named <commit>.  Typically you
>         would want comparison with the latest commit, so if you
>         do not give <commit>, it defaults to HEAD.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Brian GernhardtNext: Nicolas Pitre
Message 4 of 5 in “Update git-diff documentation”
  1. Update git-diff documentationJunio C Hamano, Dec 14, 2006
  2. Johannes SchindelinDec 14, 2006
  3. Cleanup git-diff documentationBrian Gernhardt, Dec 14, 2006
  4. Jakub NarebskiDec 15, 2006
  5. Nicolas PitreDec 14, 2006

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.