7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-12-26 15:19:33 +00:00
kicad/tools/git/format_alias
2022-07-21 19:16:16 -04: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"