Thanks to visit codestin.com
Credit goes to github.com

Skip to content

merge: set default rename threshold #4061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 14, 2017
Merged

merge: set default rename threshold #4061

merged 2 commits into from
Jan 14, 2017

Conversation

ethomson
Copy link
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
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
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