format-code(1)

Synopsis

format-code -d|--directory <directory> [-c|-n] [-v] [--use-available]

Description

format-code will run format-code recursively on a directory of a git repository’s working tree, optionally committing the result.

Options

-d <directory>, --directory <directory>

Top-level directory to which to apply formatting.

-c, --commit

Commit changes after code-formatting has been applied.

Warning

an attempt to use this option with a dirty working area will fail with an error.

-n, --dry-run

No changes will be made to source code.

-v, --verbose
--use-available

Use the version of clang-format already set up for use.