summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b77134b)
raw | patch | inline | side by side (parent: b77134b)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 11 Oct 2010 16:06:18 +0000 (11:06 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Oct 2010 02:10:56 +0000 (19:10 -0700) |
Originally "--no-index" mode 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 was fixed to only implicitly trigger when paths
outside the tracked tree are mentioned.
Reported-by: Yann Dirson <dirson@bertin.fr>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tracked tree, but with v1.5.6-rc1~41 (Merge branch 'jc/diff-no-no-index,
2008-05-26) the command was fixed to only implicitly trigger when paths
outside the tracked tree are mentioned.
Reported-by: Yann Dirson <dirson@bertin.fr>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-diff.txt | patch | blob | history |
index fe34d4edb487c0b68b36c1b1948074e693872039..dd1fb32786f6f467a1c46f2643fbc54d0390f2ec 100644 (file)
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>...]::