Sha256: 7c7a198d90620921132f36b0858bc4e68c878bcd0027c4030da8553fd4ef91f9
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
#!/usr/bin/env bash CURRENT_BRANCH=$(git branch | grep "*" | sed "s/* //") STORY_ID=$(git config branch.$CURRENT_BRANCH.pivotal-story-id) if [[ -n $STORY_ID ]]; then ORIG_MSG_FILE="$1" TEMP=$(mktemp /tmp/git-XXXXX) (printf "\n\n[#$STORY_ID]" ; cat "$1") > "$TEMP" cat "$TEMP" > "$ORIG_MSG_FILE" fi
Version data entries
2 entries across 2 versions & 1 rubygems