git_cl format: allow WebKit style to be picked up from .clang-format
BUG=240309
TEST='git cl format' and 'git cl format --full' indent by 4 when run inside of third_party/WebKit
TBR=iannucci@chromium.org
Review URL: https://codereview.chromium.org/136333010
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@245694 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 4527944..f6c1ae7 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2358,7 +2358,7 @@
if not files:
print "Nothing to format."
return 0
- RunCommand([clang_format_tool, '-i', '-style', 'Chromium'] + files,
+ RunCommand([clang_format_tool, '-i'] + files,
cwd=top_dir)
else:
env = os.environ.copy()
@@ -2370,7 +2370,7 @@
except clang_format.NotFoundError, e:
DieWithError(e)
- cmd = [sys.executable, script, '-p0', '-style', 'Chromium', '-i']
+ cmd = [sys.executable, script, '-p0', '-i']
RunCommand(cmd, stdin=diff_output, cwd=top_dir, env=env)