kicad-source/helpers/git/format_alias
John Beard 241127788e Format: add some formatting aliases, improve dev docs
The aliases are easier than calling check_coding.sh manually,
and we already provide an alias file for the fixes alias, so
do the same for these.
2019-05-23 21:28:42 +01:00

11 lines
543 B
Plaintext

[alias]
# Alias to check the formatting since the last commit and show the issues
# that are found. No files will be changed. Only lines changed since the
# last commit are considered (and only for files that should be reformatted)
check-format = "! f() { tools/check_coding.sh --diff; }; f"
# Alias to check and fix formatting issues in files changed since the last
# commit. Only lines changed since the last commit are considered (and only
# for files that should be reformatted)
fix-format = "! f() { tools/check_coding.sh; }; f"