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

[PATCH 4/4] Documentation: update "git diff --no-index" description

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 11, 2010, 16:06 UTC
Message-ID
<20101011160618.GE25842@burratino>
In-Reply-To
<20101011160224.GA25842@burratino>

Originally "git diff --no-index" triggered for untracked files within the tracked tree, but with v1.5.6-rc1~41 (Merge branch 'jc/diff-no-no-index, 2008-05-26) the command changed to only trigger when paths outside the tracked tree are mentioned.

Reported-by: Yann Dirson <dirson@bertin.fr>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 Documentation/git-diff.txt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt
index fe34d4e..dd1fb32 100644
--- a/Documentation/git-diff.txt
+++ b/Documentation/git-diff.txt
@@ -23,9 +23,9 @@ tree and the index file, or the index file and the working tree.
 	further add to the index but you still haven't.  You can
 	stage these changes by using linkgit:git-add[1].
 +
-If exactly two paths are given, and at least one is untracked,
-compare the two files / directories. This behavior can be
-forced by --no-index.
+If exactly two paths are given and at least one points outside
+the current repository, 'git diff' will compare the two files /
+directories. This behavior can be forced by --no-index.
 
 'git diff' [--options] --cached [<commit>] [--] [<path>...]::
 
-- 
1.7.2.3
Previous: Jonathan NiederNext: Jonathan Nieder
Message 10 of 15 in “Undocumented git-diff syntax”
  1. Yann DirsonOct 11, 2010
  2. Santi BéjarOct 11, 2010
  3. Yann DirsonOct 11, 2010
  4. Santi BéjarOct 11, 2010
  5. 0/4 Re: Undocumented git-diff syntaxJonathan Nieder, Oct 11, 2010
  6. 1/5 Documentation: gitrevisions is in section 7Jonathan Nieder, Oct 11, 2010
  7. Sverre RabbelierOct 11, 2010
  8. 2/4 Documentation: diff can compare blobsJonathan Nieder, Oct 11, 2010
  9. 3/4 Documentation: expand 'git diff' SEE ALSO sectionJonathan Nieder, Oct 11, 2010
  10. 4/4 Documentation: update "git diff --no-index" descriptionJonathan Nieder, Oct 11, 2010
  11. 5/4 Documentation: flesh out diff --no-index descriptionJonathan Nieder, Oct 11, 2010
  12. Junio C HamanoOct 13, 2010
  13. Yann DirsonOct 11, 2010
  14. Sverre RabbelierOct 11, 2010
  15. Jakub NarebskiOct 11, 2010

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.