Skip to content

Instantly share code, notes, and snippets.

View mwq's full-sized avatar

Mattias Warnqvist mwq

  • Göteborg, Sweden
View GitHub Profile
#!/bin/sh
# Stolen from http://stackoverflow.com/questions/3525341/can-i-use-a-scripted-commit-template-for-git
ORIG_MSG_FILE="$1"
TEMP=`mktemp /tmp/git-XXXXX`
TICKETNO=`git rev-parse --abbrev-ref HEAD | cut -d_ -f1`
(echo "[$TICKETNO]"; cat "$ORIG_MSG_FILE") > "$TEMP"
se:
errors:
messages:
not_found: "hittades inte"
already_confirmed: "är redan bekräftad"
not_locked: "är inte låst"
devise:
failure:
unauthenticated: 'Du måste logga in eller skapa ett konto innan du kan fortsätta.'