Following command outputs following lines of text on console
git log --pretty=format:\"%h;%ai;%s\" --shortstat ed6e0ab;2014-01-07 16:32:39 +0530;Foo 3 files
I put something like this in my ~/.bashrc:
~/.bashrc
function git-lgs() { git --no-pager log --numstat --format=%ai "$1" | sed ':a;N;$!ba;s/\n\n/\t/g' | sed 's/\(\t[0-9]*\t*[0-9]*\).*/\1/' }
Where git-lgs's argument is the filename for which you want to display the log.
git-lgs