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

Issue 1666403002: Make "git cl format" format GN files. (Closed)

Created:
4 years, 10 months ago by kylechar
Modified:
4 years, 10 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make "git cl format" format GN files. Always formats full GN files that are modified since the format should be canonical. I tried to make it consistent in style with the existing formatters. I've tested running it locally. For "git cl format" it formats GN files. For "git cl format --diff" it outputs the full formatted files like clang but doesn't modify. For "git cl format --dry-run" it doesn't modify or output. TEST=Works running locally. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298617

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M git_cl.py View 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
kylechar
Here is a CL that adds gn format to git cl format. Since presubmit ends ...
4 years, 10 months ago (2016-02-04 22:53:29 UTC) #4
agable
lgtm
4 years, 10 months ago (2016-02-04 23:32:57 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666403002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666403002/1
4 years, 10 months ago (2016-02-05 00:07:29 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-05 00:09:52 UTC) #9
M-A Ruel
Please make sure Brett and/or Dirk approve first.
4 years, 10 months ago (2016-02-05 00:22:20 UTC) #11
Dirk Pranke
lgtm
4 years, 10 months ago (2016-02-05 00:26:46 UTC) #12
kylechar
Thanks!
4 years, 10 months ago (2016-02-05 13:26:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666403002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666403002/1
4 years, 10 months ago (2016-02-05 13:27:05 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 13:29:00 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298617

Powered by Google App Engine
This is Rietveld 408576698