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

Issue 788933003: Let `git cl format` format java files, too. (Closed)

Created:
6 years ago by Nico
Modified:
6 years ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, aurimas (slooooooooow)
Project:
tools
Visibility:
Public.

Description

Let `git cl format` format java files, too. This will only have an effect if one's buildtools checkout is new enough, since only then: a) clang-format will be new enough to do a decent job for java files b) clang-format-diff.py will be new enough to look at java files So for older buildtools checkouts, `git cl format` will continue to ignore java files. For newer buildtools checkouts (like the one pulled by `gclient sync` with a recent chromium checkout), it'll work and do a fairly decent job. BUG=429372 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293312

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M git_cl.py View 1 chunk +1 line, -1 line 3 comments Download

Messages

Total messages: 9 (3 generated)
Nico
I'll send out a short heads-up to chromium-dev once this is in.
6 years ago (2014-12-09 20:12:46 UTC) #2
M-A Ruel
https://codereview.chromium.org/788933003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/788933003/diff/1/git_cl.py#newcode2772 git_cl.py:2772: CLANG_EXTS = ['.cc', '.cpp', '.h', '.mm', '.proto', '.java'] A ...
6 years ago (2014-12-09 21:15:45 UTC) #4
Nico
https://codereview.chromium.org/788933003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/788933003/diff/1/git_cl.py#newcode2772 git_cl.py:2772: CLANG_EXTS = ['.cc', '.cpp', '.h', '.mm', '.proto', '.java'] On ...
6 years ago (2014-12-09 21:17:44 UTC) #5
M-A Ruel
https://codereview.chromium.org/788933003/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/788933003/diff/1/git_cl.py#newcode2772 git_cl.py:2772: CLANG_EXTS = ['.cc', '.cpp', '.h', '.mm', '.proto', '.java'] On ...
6 years ago (2014-12-09 21:18:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788933003/1
6 years ago (2014-12-09 21:19:50 UTC) #8
commit-bot: I haz the power
6 years ago (2014-12-09 21:21:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293312

Powered by Google App Engine
This is Rietveld 408576698