Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (8 sloc) 532 Bytes
#!/usr/bin/env bash
# Use this as a replacement for `git log`, it should work exactly the same, except spit out Jira urls instead of log messages
# e.g.
# git-log-jira EXTJSIV origin/extjs-4.1.0 --since="last monday"
# git-log-jira TOUCH origin/touch-2.0.0 --since="last monday"
echo "<!doctype html><meta charset=utf-8><title>$SEARCH`date`</title>"
git log --grep="$SEARCH" "$@" |grep "$SEARCH"|sed -E 's|^.*('"$SEARCH"'[-_\s][0-9]*).*$|<br><a href=\1>\1</a>|g'|sort|uniq