mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
diff --no-index -q: fix endless loop
We forgot to move to the next argument when parsing -q, getting stuck in an endless loop. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c6dbca08ca
commit
a324fc45e4
|
@ -207,8 +207,10 @@ void diff_no_index(struct rev_info *revs,
|
|||
int j;
|
||||
if (!strcmp(argv[i], "--no-index"))
|
||||
i++;
|
||||
else if (!strcmp(argv[i], "-q"))
|
||||
else if (!strcmp(argv[i], "-q")) {
|
||||
options |= DIFF_SILENT_ON_REMOVED;
|
||||
i++;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--"))
|
||||
i++;
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue