Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # .git/hooks/commit-msg
  2. NAME=$(git branch | grep '*' | sed 's/* //')
  3. DESCRIPTION=$(git config branch.\"$NAME\".description)
  4.  
  5. echo \"[$NAME]\"' '$(cat \"$1\") > \"$1\"
  6. if [ -n \"$DESCRIPTION\" ]
  7. then
  8. echo \"\" >> \"$1\"
  9. echo $DESCRIPTION >> \"$1\"
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement