gpt4 book ai didi

git whatchanged - -M 做什么?

转载 作者:太空狗 更新时间:2023-10-29 14:32:09 25 4
gpt4 key购买 nike

我正在查看一些使用传递给 Git 的 -M(大写 M,而不是小写,记录为包含 merge )标志的代码,这发生了变化。

我在手册页(对于 1.8.3.1)中看不到标志的定义。谁能建议它的作用?它是-m(小写)的反义词吗?

最佳答案

doc 是 git 日志。 git whatchanged 已弃用。请改用 git log。

-M --find-renames[=]

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%.

The default similarity index is 50%.

关于git whatchanged - -M 做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34403707/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com