[all-commits] [llvm/llvm-project] 294e19: Fix quiet mode in git-clang-format

Gvald via All-commits all-commits at lists.llvm.org
Wed Aug 26 09:17:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 294e1900f281f35aff0362232225e85c2e551e55
      https://github.com/llvm/llvm-project/commit/294e1900f281f35aff0362232225e85c2e551e55
  Author: Gi Vald <gvald.ike at gmail.com>
  Date:   2020-08-26 (Wed, 26 Aug 2020)

  Changed paths:
    M clang/tools/clang-format/git-clang-format

  Log Message:
  -----------
  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




More information about the All-commits mailing list