kicad-source/helpers/git/fixes_alias
Seth Hillbrand 455f6fadac Fix the fixes alias to work on Windows
Apparently Windows doesn't have normal things.  Like sed.  Or tail.  So,
we need to use git langauge instead
2021-09-30 10:11:07 -07:00

16 lines
628 B
Plaintext

[alias]
# Alias to simplify marking commits as bug fixes
# Once the script is enabled, commit your changes and run 'git fixes 123456' to mark the last commit as a fix for issue #123456
# Enable by executing in the source root directory:
# git config --add include.path $(pwd)/helpers/git/fixes_alias
fixes = "!f() { \
COMMIT_MSG=$(git log -n1 --format=%B); \
git commit --amend -m \"${COMMIT_MSG}\n\nFixes https://gitlab.com/kicad/code/kicad/issues/$1\"; \
}; f"
# Alias to extract the changelog using ADD/NEW/REMOVE/CHANGE tags from commit messages
changelog = log -E --grep="ADD:|NEW:|REMOVE[D]?:|CHANGE[D]?:"