Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sequencer: plug memory leaks for the option values
[gitweb.git]
/
diff-no-index.c
diff --git
a/diff-no-index.c
b/diff-no-index.c
index 1f8999b9cabf52c85b63f27178023ff53b7567c3..f420786039d387d3a943d510c802ecd90c3ddf28 100644
(file)
--- a/
diff-no-index.c
+++ b/
diff-no-index.c
@@
-281,6
+281,9
@@
void diff_no_index(struct rev_info *revs,
DIFF_OPT_SET(&revs->diffopt, NO_INDEX);
+ DIFF_OPT_SET(&revs->diffopt, RELATIVE_NAME);
+ revs->diffopt.prefix = prefix;
+
revs->max_count = -2;
diff_setup_done(&revs->diffopt);