mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
e423ffd8a6
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>
4 lines
60 B
Plaintext
4 lines
60 B
Plaintext
$ git diff --no-index --name-status -- dir2 dir
|
|
A dir/sub
|
|
$
|