This website works better with JavaScript.
Explore
Register
Sign In
kernel
/
git
mirror of
https://git.kernel.org/pub/scm/git/git.git
Watch
1
Star
0
Fork
You've already forked git
0
Code
Releases
Activity
31386
Commits
6
Branches
36
Tags
131 MiB
Tree:
bf44142f54
git
/
t
/
t4013
/
diff.diff_--no-index_--name...
4 lines
57 B
Raw
Normal View
History
Unescape
Escape
"git diff": do not ignore index without --no-index Even if "foo" and/or "bar" does not exist in index, "git diff foo bar" should not change behaviour drastically from "git diff foo bar baz" or "git diff foo". A feature that "sometimes works and is handy" is an unreliable cute hack. "git diff foo bar" outside a git repository continues to work as a more colourful alternative to "diff -u" as before. Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 years ago
$ git diff --no-index --name-status dir2 dir
A dir/sub
$