From 7a4f1685df7b768f8a77566699f2ed7ecf55242c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 7 Oct 2016 16:52:52 +0200 Subject: [PATCH] Extended fixes_alias description --- helpers/git/fixes_alias | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/git/fixes_alias b/helpers/git/fixes_alias index 500741b183..bf32504415 100644 --- a/helpers/git/fixes_alias +++ b/helpers/git/fixes_alias @@ -1,6 +1,10 @@ [alias] # Alias to simplify marking commits as bug fixes - # After commiting a change, run 'git fixes 123456' to mark the commit as a fix to bug lp:123456 + # 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 + 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\"; \