FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

merge: set default rename threshold by ethomson · Pull Request #4061 · libgit2/libgit2 · GitHub

Repository navigation

merge: set default rename threshold - #4061

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

carlosmn merged 2 commits into
masterfrom
ethomson/merge_opts

Conversation

ethomson commented Jan 1, 2017

Copy link
Copy Markdown
Member

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.

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.

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 merged commit 2854e61 into master Jan 14, 2017
ethomson deleted the ethomson/merge_opts branch January 9, 2019 10:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL