Guest User

Untitled

a guest
Oct 23rd, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data