Commit af8552be authored by Brenden Blanco's avatar Brenden Blanco

Remove git-clang-format output when no files are modified

parent b3abbfc0
...@@ -135,9 +135,9 @@ def main(): ...@@ -135,9 +135,9 @@ def main():
print 'Running clang-format on the following files:' print 'Running clang-format on the following files:'
for filename in changed_lines: for filename in changed_lines:
print ' ', filename print ' ', filename
if not changed_lines: else:
print 'no modified files to format' print 'no modified files to format'
return return
# The computed diff outputs absolute paths, so we must cd before accessing # The computed diff outputs absolute paths, so we must cd before accessing
# those files. # those files.
cd_to_toplevel() cd_to_toplevel()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment