Make the diff_options bitfields be an unsigned with explicit masks.
reverse_diff was a bit-value in disguise, it's merged in the flags now. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
68dce6e941
commit
8f67f8aefb
@ -366,7 +366,7 @@ static struct path_list *get_renames(struct tree *tree,
|
||||
|
||||
renames = xcalloc(1, sizeof(struct path_list));
|
||||
diff_setup(&opts);
|
||||
opts.recursive = 1;
|
||||
DIFF_OPT_SET(&opts, RECURSIVE);
|
||||
opts.detect_rename = DIFF_DETECT_RENAME;
|
||||
opts.rename_limit = rename_limit;
|
||||
opts.output_format = DIFF_FORMAT_NO_OUTPUT;
|
||||
|
||||
Reference in New Issue
Block a user