diff options
author | Chris Smith <toonarmy@phpbb.com> | 2010-04-03 02:13:48 +0100 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2010-04-03 02:13:48 +0100 |
commit | 3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6 (patch) | |
tree | 2fdb8cfcc942da0d72a27e806e969fe26e552e4e /git-tools | |
parent | b6920b7ca8a6859bf9f76247b882dbd9331a9c78 (diff) | |
download | forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.gz forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.bz2 forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.tar.xz forums-3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6.zip |
[git-tools] Prepend the branch to the commit message for all branches.
Diffstat (limited to 'git-tools')
-rwxr-xr-x | git-tools/hooks/prepare-commit-msg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tools/hooks/prepare-commit-msg b/git-tools/hooks/prepare-commit-msg index 354b539cc1..033cb187c7 100755 --- a/git-tools/hooks/prepare-commit-msg +++ b/git-tools/hooks/prepare-commit-msg @@ -28,7 +28,7 @@ branch="$(echo "$branch" | sed "s/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/ or feature/ -if [ "$2" = "" ] && [ $(echo "$branch" | grep -e "^\(bug\|feature\)/") ] +if [ "$2" = "" ] then echo "[$branch] $(cat "$1")" > "$1" fi |