mirror of
https://github.com/git/git.git
synced 2024-11-16 06:03:44 +01: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>
3 lines
60 B
Text
3 lines
60 B
Text
$ git diff --no-index --name-status -- dir2 dir
|
|
A dir/sub
|
|
$
|