Browse Source

Merge branch 'jc/fix-diff-no-index-diff-opt-parse' into maint

* jc/fix-diff-no-index-diff-opt-parse:
  diff-no-index: correctly diagnose error return from diff_opt_parse()
maint
Junio C Hamano 11 years ago
parent
commit
693b407077
  1. 2
      diff-no-index.c

2
diff-no-index.c

@ -202,7 +202,7 @@ void diff_no_index(struct rev_info *revs, @@ -202,7 +202,7 @@ void diff_no_index(struct rev_info *revs,
i++;
else {
j = diff_opt_parse(&revs->diffopt, argv + i, argc - i);
if (!j)
if (j <= 0)
die("invalid diff option/value: %s", argv[i]);
i += j;
}

Loading…
Cancel
Save