[all-commits] [llvm/llvm-project] f9a2f6: [clang-format] Fix the return code of git-clang-fo...
Sridhar Gopinath via All-commits
all-commits at lists.llvm.org
Wed Jul 27 21:01:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9a2f6b6aecf0dd2b484d99458c99f799caee584
https://github.com/llvm/llvm-project/commit/f9a2f6b6aecf0dd2b484d99458c99f799caee584
Author: Sridhar Gopinath <sridhar.g at utexas.edu>
Date: 2022-07-27 (Wed, 27 Jul 2022)
Changed paths:
M clang/tools/clang-format/git-clang-format
Log Message:
-----------
[clang-format] Fix the return code of git-clang-format
In diff and diffstat modes, the return code is != 0 even when there are no
changes between commits. This issue can be fixed by passing --exit-code to
git-diff command that returns 0 when there are no changes and using that as
the return code for git-clang-format.
Fixes #56736.
Differential Revision: https://reviews.llvm.org/D129311
More information about the All-commits
mailing list