gpt4 book ai didi

git - 为什么 `git range-diff` 不显示差异?

转载 作者:行者123 更新时间:2023-12-04 04:16:54 27 4
gpt4 key购买 nike

我有 git range-diff 的下一个输出

enter image description here

我看到历史中的 8fa7b780 提交已被 3272627a 更改,但没有显示任何其他内容。前两行(红色/绿色)是什么意思?

UPD

$ git range-diff 11f75961...1c1e98db
1: 8fa7b780 < -: -------- Add Test: interval_match.t
-: -------- > 1: 3272627a Add Test: interval_match.t
2: bb4bd0ca = 2: 73b5794b Allow to force current month
3: 9e2f487b = 3: ea8c2570 Saldo anal table now does not requires extra processing
4: ddd3362f = 4: 6a82658a Prettify code
5: b444b0c7 = 5: 2896bf63 Add check for deactivated agreements/contractors
6: 7464d470 = 6: f2eac3de Install required modules to pars XLS files
7: 11f75961 = 7: 1c1e98db Allow to upload saldo via web interface

UPD

如果我比较提交 8fa7b7803272627a 我会看到更改:

interdiff -w -b -B <(git show 8fa7b780) <(git show 3272627a)
diff -wbBu b/t/MaitreD/interval_match.t b/t/MaitreD/interval_match.t
--- b/t/MaitreD/interval_match.t
+++ b/t/MaitreD/interval_match.t
@@ -15,7 +15,7 @@
my $db = $t->app->db;


-sub match {
+sub query {
my $qr_im = <<" SQL";
select * from interval_match( $_[0], $_[1], '$_[2]' )
SQL

但是 range-diff 没有显示它们。我错过了什么吗?

$ git --version
git version 2.24.1

最佳答案

我可以使用 --creation-factor 参数。

  --creation-factor=<percent>
Set the creation/deletion cost fudge factor to <percent>. Defaults to 60.
Try a larger value if git range-diff erroneously considers a large change a
total rewrite (deletion of one commit and addition of another), and a
smaller one in the reverse case. See the ``Algorithm`` section below for an
explanation why this is needed.

例如:

git range-diff --creation-factor=99 11f75961...1c1e98db

关于git - 为什么 `git range-diff` 不显示差异?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60579315/

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