Last active
June 16, 2023 12:32
-
-
Save adrienjoly/d7dddc660619f6f836854a5ac5d2d243 to your computer and use it in GitHub Desktop.
Display `git diff` stats, one line per commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=format:"@%ad ~~%s~~" --date=short --shortstat \ | |
| tr "\n" " " \ | |
| tr "@" "\n" \ | |
| grep -v 'skip ci' \ | |
| grep -v 'deps' \ | |
| grep -v 'dependencies' \ | |
| sed -En 's/ ~~.*~~ /,/p' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=format:"@%ad," --date=short --shortstat \ | |
| tr "\n" " " \ | |
| tr "@" "\n" \ | |
| sed -En 's/ files? changed//p' \ | |
| sed -En 's/ insertions?\(\+\)//p' \ | |
| sed -En 's/ deletions?\(-\)//p' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=format:"@%h, %ad," --date=short --shortstat | tr "\n" " " | tr "@" "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment