I have two git log
aliases set up: one to show --name-status
:
...
| A path/to/yourfile.c
| M path/to/myfile.c
| M path/to/my/otherfile.c
...
and one to show --stat
:
...
| path/to/yourfile.c | 2 ++
| path/to/myfile.c | 2 +-
| path/to/my/otherfile.c | 27 +++++-----
...
Is it possible to combine the two?
...
| A path/to/yourfile.c | 2 ++
| M path/to/myfile.c | 2 +-
| M path/to/my/otherfile.c | 27 +++++-----
...
I love the --stat
overview, but it doesn't tell me if files were added or removed; just that they were modified in some way.
(When the two command-line flags are combined, --stat
is ignored.)
I don't know of a way to combine --stat
and --name-status
, but you can use git log --stat --summary
to get a list of added/removed/renamed/copied files in addition to the diffstat.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With