mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Giving both the issue number and URL is redundent in the message. GitLab can automatically close the issue using the URL, so only give the URL so it can be viewed in the log.
16 lines
665 B
Plaintext
16 lines
665 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 -1 --format=medium | tail -n +5 | sed -e 's/^ //'); \
|
|
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]?:"
|