Add feature/ support to branchname hook

The previously introduced branchname hook now will also use feature/
branch names, in addition to the existing bug/.
This commit is contained in:
Igor Wiedler 2010-03-08 01:04:33 +01:00
parent d0d1ab5471
commit 0a6db697e6

View file

@ -18,7 +18,7 @@ branch="$(cat $GIT_DIR/HEAD | sed 's/ref: refs\/heads\///g')"
# * only run when normal commit is made (without -m or -F;
# not a merge, etc.)
# * also make sure the branch name begins with bug/
if [ "$2" = "" ] && [ $(echo "$branch" | grep -e '^bug/') ]; then
# * also make sure the branch name begins with bug/ or feature/
if [ "$2" = "" ] && [ $(echo "$branch" | grep -e '^\(bug\|feature\)/') ]; then
echo "[$branch] $(cat $1)" > "$1"
fi