Descriptiongn format: Add --dry-run flag for PRESUBMIT
`gn format --dry-run some/BUILD.gn` sets exit code to 0 for "success,
unchanged", 1 for "failure", and 2 for "success but different than on
disk". This is to be able to add a PRESUBMIT.py check in the future and
matches the behaviour of the same-named flag for git cl format.
See also https://codereview.chromium.org/779513005/.
R=brettw@chromium.org
BUG=348474
Committed: https://crrev.com/f5d95bf7fb5ee07c82e62cb573af67b195284bc3
Cr-Commit-Position: refs/heads/master@{#306940}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|