Contributing to this translation requires agreeing to its contributor agreement.
English | Chinese (Simplified) | ||
---|---|---|---|
file | 文件 | Git Manpages | |
Git | Git | Git Manpages | |
index | index/索引/暂存区 | Git Manpages | |
sign | 签名 | Git Manpages |
Source string description
type: Plain textFlags
no-wrap, priority:280
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%`. The default similarity index is 50%.
例如,`-M90%` 表示如果文件90%以上的内容没有更改,则 Git 应将删除/添加对视为重命名。
如果没有 `%` 符号,则该数字应作为小数读取,并在其前面加上小数点。
即 `-M5` 变为 0.5,因此与 `-M50%` 相同。 同样,`-M05` 与 `-M5%` 相同。
要将检测限制为精确的重命名,请使用 `-M100%`。 默认相似度指数为50%。