Forked from adrienjoly/git-commit-stats-csv-without-deps-and-releases.sh
Created
June 16, 2023 12:32
-
-
Save da-moon/7c27970b9e780713d7a3c6dc015a49bb to your computer and use it in GitHub Desktop.
Display `git diff` stats, one line per commit
This file contains 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 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 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