mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 10:25:14 +00:00
Always use GIT_HASHSIG_SMART_WHITESPACE when diffing for merges
git_merge_tree_flag_t cannot contain any GIT_DIFF_FIND_xxx flags so there's not point in checking for them
This commit is contained in:
parent
36fc549781
commit
b3837d4d2b
@ -1610,12 +1610,6 @@ static int merge_normalize_opts(
|
||||
opts->metric->buffer_signature = git_diff_find_similar__hashsig_for_buf;
|
||||
opts->metric->free_signature = git_diff_find_similar__hashsig_free;
|
||||
opts->metric->similarity = git_diff_find_similar__calc_similarity;
|
||||
|
||||
if (opts->flags & GIT_DIFF_FIND_IGNORE_WHITESPACE)
|
||||
opts->metric->payload = (void *)GIT_HASHSIG_IGNORE_WHITESPACE;
|
||||
else if (opts->flags & GIT_DIFF_FIND_DONT_IGNORE_WHITESPACE)
|
||||
opts->metric->payload = (void *)GIT_HASHSIG_NORMAL;
|
||||
else
|
||||
opts->metric->payload = (void *)GIT_HASHSIG_SMART_WHITESPACE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user