While in a git repository, I can do :
git log --oneline --stat and I'll have a nice output looking like:
ca0ab77 commit message a/file/changed | 19 ------------------- 1 file changed, 19 deletions(-) In my case, I am working outside a git repository and I only have the .diff (the output of git diff <commit-ish>) files and I would like to have the same stats (Files changed, additions, deletions).
Is there a tool to do it ? Or should I write a regex ?