a guest Apr 24th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Merging branch (could use GIT_MERGE file)
- if grep -q "Merge branch "; then
- # Amending
- if [ ! -z "$SHA1" ]; then
- PREFIX=$(git log -n 5 --pretty=%B | grep ": " | cut -d " " -f1 | head -n 1)
- if -z "$PREFIX"; then
- sed -i "1i $PREFIX " "$COMMIT_MSG_FILE"
RAW Paste Data