[PATCH] D85485: Fix quiet mode in git-clang-format
Gvald Ike via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 6 16:08:59 PDT 2020
Gvald created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Gvald requested review of this revision.
Eliminate output in quiet mode, when no modified files exists
Repository:
rG LLVM Github Monorepo
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.283760.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200806/5da68ec3/attachment.bin>
More information about the cfe-commits
mailing list