Skip to content

Commit d879710

Browse files
author
git apple-llvm automerger
committed
Merge commit 'f09986aab575' from llvm.org/main into next
2 parents 3b789f8 + f09986a commit d879710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def compute_diff(commits, files, staged, diff_common_commit):
419419
if len(commits) == 2:
420420
git_tool = "diff-tree"
421421
if diff_common_commit:
422-
commits = [f"{commits[0]}...{commits[1]}"]
422+
extra_args += ["--merge-base"]
423423
elif staged:
424424
extra_args += ["--cached"]
425425

0 commit comments

Comments
 (0)