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

Unified Diff: git_cl.py

Issue 788933003: Let `git cl format` format java files, too. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 6 years 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
===================================================================
--- git_cl.py (revision 293310)
+++ git_cl.py (working copy)
@@ -2769,7 +2769,7 @@
@subcommand.usage('[files or directories to diff]')
def CMDformat(parser, args):
"""Runs clang-format on the diff."""
- CLANG_EXTS = ['.cc', '.cpp', '.h', '.mm', '.proto']
+ CLANG_EXTS = ['.cc', '.cpp', '.h', '.mm', '.proto', '.java']
M-A Ruel 2014/12/09 21:15:45 A careful reader will note that the list was sorte
Nico 2014/12/09 21:17:44 It’s not sorted, it’s grouped by language. See the
M-A Ruel 2014/12/09 21:18:35 "..." lgtm
parser.add_option('--full', action='store_true',
help='Reformat the full content of all touched files')
parser.add_option('--dry-run', action='store_true',
« 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