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>
Thomas Rast committed
Jan 7, 2009 at 12:15 UTC
a324fc45e4d04e3b879cd2d9a603d73ca696b775
1 file changed
+3
-1
diff-no-index.c
+3
-1
@@ -207,8 +207,10 @@ void diff_no_index(struct rev_info *revs,
207
int j;
208
if (!strcmp(argv[i], "--no-index"))
209
i++;
210
- else if (!strcmp(argv[i], "-q"))
210
+ else if (!strcmp(argv[i], "-q")) {
211
options |= DIFF_SILENT_ON_REMOVED;
212
+ i++;
213
+ }
214
else if (!strcmp(argv[i], "--"))
215
i++;
216
else {