Git log stats with regular expressions
I would like to do some stats on my git log to get something like:
10 Daniel Schmidt 5 Peter 1 Klaus
The first column is the count of commits and the second the commiter. I already got as far as this:
git log --raw | grep "^Author: " | sort | uniq -c | sort -nr | less -FXRS
The interesting part is the
grep "^Author: "
which i wanted to modify with a nice Regex to exclude the mail adress. With Rubular something like this http://rubular.com/r/mEzP2hFjGb worked, but if i insert it in the grep (or in a piped other one) it won't get me the right output.
Sidequestion: Is there a possibility to get the count and the author seperated by something else then whitespace while staying in this pipe command style? I would like to have a nicer seperator between both to us column later (and maybe some color ^^)
Thanks a lot for your help!
Google git-extras. It has a git summary that does this.