Mercurial > hg > hg-git
changeset 847:82b457515ddb
readme: add docs for rename detection options
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 05 Dec 2014 01:18:43 -0800 (2014-12-05) |
parents | 4f0b86da5e72 |
children | 05eb0874fa30 |
files | README.md |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md +++ b/README.md @@ -228,3 +228,28 @@ If set, branches where the latest commit's commit time is older than this will not be imported. Accepts any date formats that Mercurial does -- see `hg help dates` for more. + +git.similarity +-------------- + +Specify how similar files modified in a Git commit must be to be imported as +Mercurial renames or copies, as a percentage between "0" (disabled) and "100" +(files must be identical). For example, "90" means that a delete/add pair will +be imported as a rename if more than 90% of the file has stayed the same. The +default is "0" (disabled). + +git.renamelimit +--------------- + +The number of files to consider when performing the copy/rename detection. +Detection is disabled if the number of files modified in a commit is above the +limit. Detection is O(N^2) in the number of files modified, so be sure not to +set the limit too high. Similar to Git's `diff.renameLimit` config. The default +is "400", the same as Git. + +git.findcopiesharder +-------------------- + +Whether to consider unmodified files as copy sources. This is a very expensive +operation for large projects, so use it with caution. Similar to `git diff`'s +--find-copies-harder option.