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.
source
share