diff --no-index: do not forget to run diff_setup_done()
Code inspection by Linus found this. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8419d2ee9b
commit
b78281f721
@ -298,6 +298,8 @@ int setup_diff_no_index(struct rev_info *revs,
|
||||
revs->diffopt.nr_paths = 2;
|
||||
revs->diffopt.no_index = 1;
|
||||
revs->max_count = -2;
|
||||
if (diff_setup_done(&revs->diffopt) < 0)
|
||||
die("diff_setup_done failed");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user