Fix quiet mode in git-clang-format
authorGi Vald <gvald.ike@gmail.com>
Tue, 25 Aug 2020 20:37:14 +0000 (22:37 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 26 Aug 2020 16:15:52 +0000 (18:15 +0200)
commit294e1900f281f35aff0362232225e85c2e551e55
tree5232f30a77ff8baaa42ba5fe811d3126515c2da2
parenta0aed80b22d1b698b86e0c16109fdfd4d592756f
Fix quiet mode in git-clang-format

Quiet mode is very useful for scripting, when only the diff format output is
required, or no output if not formatting is needed.
In case of no modified files, git-clang-format will output to screen even though
the quiet mode enabled.

This patch changes this behavior, so if quiet flag passes in - no output will be
available, even if no modified files exists.

Differential Revision: https://reviews.llvm.org/D85485
clang/tools/clang-format/git-clang-format