[PATCH] D85485: Fix quiet mode in git-clang-format
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 26 09:17:02 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG294e1900f281: Fix quiet mode in git-clang-format (authored by Gvald, committed by serge-sans-paille).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85485/new/
https://reviews.llvm.org/D85485
Files:
clang/tools/clang-format/git-clang-format
Index: clang/tools/clang-format/git-clang-format
===================================================================
--- clang/tools/clang-format/git-clang-format
+++ clang/tools/clang-format/git-clang-format
@@ -148,7 +148,8 @@
for filename in changed_lines:
print(' %s' % filename)
if not changed_lines:
- print('no modified files to format')
+ if opts.verbose >= 0:
+ print('no modified files to format')
return
# The computed diff outputs absolute paths, so we must cd before accessing
# those files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85485.288004.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200826/0f2c354c/attachment.bin>
More information about the cfe-commits
mailing list