Skip to content

merge: set default rename threshold#4061

Merged
carlosmn merged 2 commits into
masterfrom
ethomson/merge_opts
Jan 14, 2017
Merged

merge: set default rename threshold#4061
carlosmn merged 2 commits into
masterfrom
ethomson/merge_opts

Conversation

@ethomson
Copy link
Copy Markdown
Member

@ethomson ethomson commented Jan 1, 2017

When GIT_MERGE_FIND_RENAMES is set, provide a default for rename_threshold when it is unset.

The merge machinery expects rename_threshold to be nonzero if GIT_MERGE_FIND_RENAMES is set. Previously, a consumer could set GIT_MERGE_FIND_RENAMES but leave rename_threshold unset and merge would get terribly confused.

Fixes #4035

When `GIT_MERGE_FIND_RENAMES` is set, provide a default for
`rename_threshold` when it is unset.
@carlosmn
Copy link
Copy Markdown
Member

Did you man to change the library's default to be finding renames? That would certainly need an entry in CHANGELOG and it doesn't sound like what the commit message is saying.

@ethomson
Copy link
Copy Markdown
Member Author

Yeah, that seems reasonable. This is bringing the defaults in line when you actually set up a structure using GIT_MERGE_OPTS_INIT versus simply passing NULL for the options. I added a change log entry to reflect that.

@carlosmn carlosmn merged commit 2854e61 into master Jan 14, 2017
@ethomson ethomson deleted the ethomson/merge_opts branch January 9, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants