Created
March 10, 2014 09:27
-
-
Save kishiamy/9461959 to your computer and use it in GitHub Desktop.
Set trello_id in commit by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TRELLO_ID=`git rev-parse --abbrev-ref HEAD | egrep -o '[a-zA-Z0-9]{8}$'` | |
if [ -n "$TRELLO_ID" ]; then | |
sed -i -e "1s/^\(.*\)/[$TRELLO_ID] \1/" $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment