[clang-format] Add "three dot" diff option to git-clang-format (#74230)
commitaeaae5311b8d4bbcfe7ef5cff722ea36b038c0ad
authorAiden Grossman <agrossman154@yahoo.com>
Wed, 6 Dec 2023 03:19:21 +0000 (5 19:19 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 03:19:21 +0000 (5 19:19 -0800)
treee5220c726aeb10d6231899305d88ae6fd4f79226
parent689db42c9c393cbf27da5aa345f6a7429cf7e18f
[clang-format] Add "three dot" diff option to git-clang-format (#74230)

This patch adds in the ability to do a "three dot" git-clang-format
between two commits. This looks at the diff between the second commit
and the common merge base rather than comparing at the point of the
specified commits. This is needed to improve the reliability of the LLVM
code formatting CI action which currently breaks in some cases where
files have been modified in the upstream tree and when the person
created their branch, leaving phantom formatting diffs that weren't
touched by the PR author.

Part of a fix for #73873
clang/tools/clang-format/git-clang-format