Skip to content

Instantly share code, notes, and snippets.

@fredrikhl
Last active August 29, 2015 14:00
Show Gist options
  • Save fredrikhl/90856e22dbad5dd4a31f to your computer and use it in GitHub Desktop.
Save fredrikhl/90856e22dbad5dd4a31f to your computer and use it in GitHub Desktop.
Cerebrum commit msg hook
#!/bin/sh
#
# branch -> remove /path/to/branch
tag=$( git symbolic-ref HEAD \
| awk -F'/' '{print $NF}' \
| sed 's/^[Cc][Rr][Bb]-\([0-9]\+\)/CRB-\1/' \
)
[ -n "$tag" ] && echo "$tag" >> $1
@tobiasvl
Copy link

tobiasvl commented May 4, 2014

I always use -m ;_;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment