Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2044)

Unified Diff: git_cl.py

Issue 24217002: Add a flag for clang-format that instructs the tool to strip 0 leading slashes from the file names. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 43c9d365bd93c3a0d1dabe1d2d6372fd8a8a297d..2f41bda957811150c2ff17da466289ac1ddd594f 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2181,7 +2181,7 @@ def CMDformat(parser, args):
'clang-format-diff.py')
if not os.path.exists(cfd_path):
DieWithError('Could not find clang-format-diff at %s.' % cfd_path)
- cmd = [sys.executable, cfd_path, '-style', 'Chromium']
+ cmd = [sys.executable, cfd_path, '-p0', '-style', 'Chromium']
RunCommand(cmd, stdin=diff_output, cwd=top_dir)
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698