commit | 43bb7accd145f68851784ff844a23f2da83ee51e | [log] [tgz] |
---|---|---|
author | David Greenaway <dgreenaway@google.com> | Wed Oct 28 00:12:19 2020 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Wed Oct 28 00:12:19 2020 +0000 |
tree | 738cfc4cc9aca7c88be8683f122ee95e5a321133 | |
parent | c6137036b2fc22c965ca8a0eee4f61e57528ef1a [diff] |
[fx][format-code] Allow only changed lines to be formatted. ClangFormat supports specifying which lines should be formatted. Add support for this in "fx format-code" by adding an option "--changed-lines" which detects which lines have been changed in the file (relative to the git base), and plumbs these through to clang-format. Change-Id: I36583222b4799289beb4501ecd51fdce2e3a320b Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/443477 Commit-Queue: David Greenaway <dgreenaway@google.com> Reviewed-by: Jeremy Manson <jeremymanson@google.com> Testability-Review: Jeremy Manson <jeremymanson@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.