================ @@ -328,6 +337,10 @@ def compute_diff(commits, files, staged): git_tool = 'diff-tree' elif staged: extra_args += ['--cached'] + + if len(commits) > 1 and diff_common_commit: + commits = [f'{commits[0]}...{commits[1]}'] ---------------- owenca wrote:
```suggestion git_tool = 'diff-tree' if diff_common_commit: commits = [f'{commits[0]}...{commits[1]}'] elif staged: extra_args += ['--cached'] ``` I would also change line 336 to: ``` if len(commits) == 2: ``` https://github.com/llvm/llvm-project/pull/74230 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits