From 6e23cad126471dd5e9413ba190e15ba6c74bd646 Mon Sep 17 00:00:00 2001 From: Marcus Sorensen Date: Wed, 7 Nov 2012 10:07:07 -0700 Subject: [PATCH] Summary: Add Bugfix-for line to prepare-commit-msg Detail: This reminds us to tag commits that should be considered for a bugfix release, making them easier to find/apply and less likely to slip through the cracks. Individual committers really should know best which things need to be pushed as an immediate bugfix anyway, this makes it easy to tag things as such. Signed-off-by: Marcus Sorensen 1352308027 -0700 --- tools/git/prepare-commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/git/prepare-commit-msg b/tools/git/prepare-commit-msg index 1addb0e9239..af8964b4b28 100755 --- a/tools/git/prepare-commit-msg +++ b/tools/git/prepare-commit-msg @@ -64,6 +64,7 @@ cat < $file # Detail: Multi-line description, followed by blank line # # BUG-ID: CLOUDSTACK-9999 +# Bugfix-for: 4.0 (a branch that this should be considered for in a bugfix release) # Reviewed-by: Bar Barlington , Foo McFooson # Reported-by: Baz Bazelli # Signed-off-by: You @@ -76,7 +77,8 @@ SOB=$(git var GIT_AUTHOR_IDENT) sed -i "1s/^/################################# 80 chars #####################################\n\ Summary: \n\n\ Detail: \n\n\ -BUG-ID : \n\ +BUG-ID: \n\ +Bugfix-for: \n\ Reviewed-by: \n\ Reported-by: \n\ Signed-off-by: ${SOB}\n\n/" $file