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

标签 git git-diff

我有 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/

相关文章:

git - git fetch 后看不到远程分支的差异

git - 二进制文件上的 git difftool 可能吗?如果是这样,如何配置它?

git - 我可以让 "git gui"通过,比方说, "--patience"到 "git diff"吗?

git 显示提交消息之间的差异

git - 如何提取除一个文件以外的所有文件?

Git - 如何使用当前索引(当前状态)的一些未暂存更改来编辑旧的(不是以前的)提交?

git - 当您在 merge 提交上输入 `git show` 时,差异意味着什么?

git - "insertions and deletions"是什么意思以及数字是如何计算的

windows - 如何在 Windows 上可视化 GitHub 分支历史记录?

ruby - 首次登录时在 heroku 中获取 "Authentication Failed"