2016-08-12 09:26:15 +00:00
|
|
|
[alias]
|
2016-08-12 09:47:07 +00:00
|
|
|
# Alias to simplify marking commits as bug fixes
|
2019-12-01 09:44:04 +00:00
|
|
|
# Once the script is enabled, commit your changes and run 'git fixes 123456' to mark the last commit as a fix for issue #123456
|
2016-10-07 14:52:52 +00:00
|
|
|
|
|
|
|
# Enable by executing in the source root directory:
|
2022-07-21 23:16:16 +00:00
|
|
|
# git config --add include.path $(pwd)/tools/git/fixes_alias
|
2016-10-07 14:52:52 +00:00
|
|
|
|
2016-08-12 09:26:15 +00:00
|
|
|
fixes = "!f() { \
|
2021-09-30 17:11:07 +00:00
|
|
|
COMMIT_MSG=$(git log -n1 --format=%B); \
|
2019-12-19 00:38:28 +00:00
|
|
|
git commit --amend -m \"${COMMIT_MSG}\n\nFixes https://gitlab.com/kicad/code/kicad/issues/$1\"; \
|
2016-08-12 09:26:15 +00:00
|
|
|
}; f"
|
2017-11-23 09:16:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Alias to extract the changelog using ADD/NEW/REMOVE/CHANGE tags from commit messages
|
|
|
|
changelog = log -E --grep="ADD:|NEW:|REMOVE[D]?:|CHANGE[D]?:"
|