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;
|
int j;
|
||||||
if (!strcmp(argv[i], "--no-index"))
|
if (!strcmp(argv[i], "--no-index"))
|
||||||
i++;
|
i++;
|
||||||
else if (!strcmp(argv[i], "-q"))
|
else if (!strcmp(argv[i], "-q")) {
|
||||||
options |= DIFF_SILENT_ON_REMOVED;
|
options |= DIFF_SILENT_ON_REMOVED;
|
||||||
|
i++;
|
||||||
|
}
|
||||||
else if (!strcmp(argv[i], "--"))
|
else if (!strcmp(argv[i], "--"))
|
||||||
i++;
|
i++;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user