Using git log, is there a way to get '--name-status' and '--numstat' in the same command?

For all commit files, I would like to provide both a status modifier --name-statusand the number of added and deleted lines that --numstatit gives. Say I have the following:

> git log --pretty=format:"%aN %ct" --reverse --name-status --encoding=UTF-8 --no-renames
John Doe 1234567489
M       foo/bar/foo.bar
A       bar/hello.txt

and

> git log --pretty=format: --reverse --numstat --encoding=UTF-8 --no-renames
9      5       foo/bar/foo.bar
21     0       bar/hello.txt

Is there one command / combination of flags that gives me the result of combining them? Something like that:

John Doe 1234567489
M    9    5       foo/bar/foo.bar
A    21   0       bar/hello.txt

I know that you can combine them with some magic awk, but seeing that I will do it in several large repositories and performance, one git log command would be preferable.

+5
source share
1 answer

-name-, , ( -name-only), --summary -numstats. , , .

git log --pretty=format:"%aN %ct" --reverse --summary --numstat --encoding=UTF-8 --no-renames

- :

Christopher Corley 1363309327
4929    0       IEEEtran.cls
22      46      paper.tex
 create mode 100644 IEEEtran.cls

, . (.. "M" ) .

, -raw -summary, :

Christopher Corley 1363309327
:000000 100644 0000000... 5e2d183... A  IEEEtran.cls
:100644 100644 2abed5a... 91f133d... M  paper.tex
4929    0       IEEEtran.cls
22      46      paper.tex
+1

All Articles