rau*_*mis 2 git github bitbucket intellij-idea
尝试使用带有intellij-idea的git在项目中移动文件,重构由IDE修改导入和包完成,项目的一些文件被删除并再次添加,因为在GIT中有一定比例的修改,在它上面,文件被检测为新的.
我想修改此百分比否以将文件检测为新的.可能吗?
实际上,Git移动操作与删除和添加步骤相同(此处有更多信息).
但是,您可以使用移动操作检测一定量的更改git log
.请查看git-log(1)
手册页中的以下选项:
-M[<n>], --find-renames[=<n>]
If generating diffs, detect and report renames for each commit. For
following files across renames while traversing history, see
--follow. If n is specified, it is a threshold on the similarity
index (i.e. amount of addition/deletions compared to the file’s
size). For example, -M90% means Git should consider a delete/add
pair to be a rename if more than 90% of the file hasn’t
changed. Without a % sign, the number is to be read as a fraction,
with a decimal point before it. I.e., -M5 becomes 0.5, and is thus
the same as -M50%. Similarly, -M05 is the same as -M5%. To limit
detection to exact renames, use -M100%
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
625 次 |
最近记录: |