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
|
2016-10-07 14:52:52 +00:00
|
|
|
# When the script is enabled, you may commit a change and run 'git fixes 123456' to mark the commit as a fix to bug lp:123456
|
|
|
|
|
|
|
|
# Enable by executing in the source root directory:
|
|
|
|
# git config --add include.path $(pwd)/helpers/git/fixes_alias
|
|
|
|
|
2016-08-12 09:26:15 +00:00
|
|
|
fixes = "!f() { \
|
|
|
|
COMMIT_MSG=$(git log -1 --format=medium | tail -n +5 | sed -e 's/^ //'); \
|
|
|
|
git commit --amend -m \"${COMMIT_MSG}\n\nFixes: lp:$1\n* https://bugs.launchpad.net/kicad/+bug/$1\"; \
|
|
|
|
}; 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]?:"
|