Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # .git/hooks/commit-msg
- NAME=$(git branch | grep '*' | sed 's/* //')
- DESCRIPTION=$(git config branch.\"$NAME\".description)
- echo \"[$NAME]\"' '$(cat \"$1\") > \"$1\"
- if [ -n \"$DESCRIPTION\" ]
- then
- echo \"\" >> \"$1\"
- echo $DESCRIPTION >> \"$1\"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement