Skip to content

Commit 89865d1

Browse files
committed
First file
0 parents  commit 89865d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

prepare-commit-msg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
ORIG_MSG_FILE="$1"
3+
TEMP=`mktemp /tmp/git-XXXXX`
4+
5+
TRACKERID=`git rev-parse --abbrev-ref HEAD | grep -o '[0-9]*'`
6+
7+
(echo "[#$TRACKERID]"; cat "$ORIG_MSG_FILE") > "$TEMP"
8+
cat "$TEMP" > "$ORIG_MSG_FILE"
9+

0 commit comments

Comments
 (0)