commit | 7cd1dfeb70f9de72f4d93188feca102f2c8e2a64 | [log] [tgz] |
---|---|---|
author | Sridhar Gopinath <sridhar.g@utexas.edu> | Wed Jul 27 21:00:37 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Jul 27 22:35:17 2022 -0700 |
tree | 3b8b52b47cdde17d4609e472bb67ddf153676a03 | |
parent | 1371f239ffb4afcd06547db19fa5085b38ca5dd8 [diff] |
[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 NOKEYCHECK=True GitOrigin-RevId: f9a2f6b6aecf0dd2b484d99458c99f799caee584