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

Issue 2219703003: Format GN files in-place by default. (Closed)

Created:
4 years, 4 months ago by brettw
Modified:
4 years, 4 months ago
Reviewers:
Dirk Pranke, scottmg
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Format GN files in-place by default. Almost all manual uses of "gn format" are to update files in-place. Make this mode the default rather than requiring --in-place to be passed. With this change, you can update a file in-place or use pipes, but the previous mode to take input from a file and output to stdout is lost. This seems to be not a strong use-case, and one can always pipe a file to stdin to work around the limitation. Suppresses outputting formated data when --dump-tree is specified. Committed: https://crrev.com/16ad3fe769c7215728e6c7661674d871d5fe3052 Cr-Commit-Position: refs/heads/master@{#410137}

Patch Set 1 #

Total comments: 3

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -21 lines) Patch
M tools/gn/command_format.cc View 1 8 chunks +10 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
brettw
4 years, 4 months ago (2016-08-05 17:22:19 UTC) #2
scottmg
https://codereview.chromium.org/2219703003/diff/1/tools/gn/command_format.cc File tools/gn/command_format.cc (right): https://codereview.chromium.org/2219703003/diff/1/tools/gn/command_format.cc#newcode33 tools/gn/command_format.cc:33: "gn format [--dump-tree] [--stdin | <build_file> ]\n" no space ...
4 years, 4 months ago (2016-08-05 17:31:48 UTC) #5
brettw
comments
4 years, 4 months ago (2016-08-05 17:47:11 UTC) #6
brettw
PTAL. I changed the docstring to use () since you have to do one or ...
4 years, 4 months ago (2016-08-05 17:48:07 UTC) #9
scottmg
lgtm. (I would have used {}, but () seems clear enough.)
4 years, 4 months ago (2016-08-05 17:50:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219703003/20001
4 years, 4 months ago (2016-08-05 19:15:21 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-05 19:19:30 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/16ad3fe769c7215728e6c7661674d871d5fe3052 Cr-Commit-Position: refs/heads/master@{#410137}
4 years, 4 months ago (2016-08-05 19:21:12 UTC) #17
Dirk Pranke
4 years, 4 months ago (2016-08-08 21:08:34 UTC) #19
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698