Skip to content

Files

Latest commit

d150cec · May 21, 2022

History

History

git-log-of-count-and-format

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Jan 11, 2022

README.md

git log-of-count-and-format

Show a count of log entries and a custom format string

Git alias:

log-of-count-and-format = "!f() { format=\"$1\"; shift; git log $@ --format=oneline --format="$format" | awk '{a[$0]++}END{for(i in a){print a[i], int((a[i]/NR)*100) \"%\", i}}' | sort -nr; }; f"

Example:

git log-of-count-and-format <format>

Compare git log-of-format-and-count.