Last active
December 16, 2015 12:29
-
-
Save jmgarnier/5434874 to your computer and use it in GitHub Desktop.
Revisions
-
Jean-Michel Garnier revised this gist
Apr 22, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ #!/bin/sh project="VCORE-" ticket=$(git symbolic-ref HEAD | awk -F- '/VCORE-(.*)-/ {print $2}') if [ -n "$ticket" ]; then TEMP=`mktemp /tmp/commitmsg-XXXXX` (echo "$project$ticket - "; cat $1) > $TEMP cat $TEMP > $1 fi -
Jean-Michel Garnier created this gist
Apr 22, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/sh ticket=$(git symbolic-ref HEAD | awk -F- '/VCORE-(.*)-/ {print $2}') if [ -n "$ticket" ]; then TEMP=`mktemp /tmp/commitmsg-XXXXX` (echo "VCORE-$ticket - "; cat $1) > $TEMP cat $TEMP > $1 fi