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
23297
Commits
6
Branches
36
Tags
131 MiB
Tree:
02567e88ee
git
/
t
/
t4013
/
diff.diff_--no-index_--name...
4 lines
60 B
Raw
Normal View
History
Unescape
Escape
diff: accept -- when using --no-index Accept -- as an "end of options" marker even when using --no-index. Previously, the -- triggered a "normal" index/tree diff and subsequently failed because of the unrecognized (in that mode) --no-index. Note that the second loop can treat '--' as a normal option, because the preceding checks ensure it is the third-to-last argument. While at it, fix the parsing of "-q" option in --no-index mode as well. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 years ago
$ git diff --no-index --name-status -- dir2 dir
A dir/sub
$