Skip to content

Instantly share code, notes, and snippets.

@westonruter
Last active May 15, 2025 05:15
Show Gist options
  • Save westonruter/553ba4c0c59780f75ab1416e6c1167b1 to your computer and use it in GitHub Desktop.
Save westonruter/553ba4c0c59780f75ab1416e6c1167b1 to your computer and use it in GitHub Desktop.

With a local clone of the WordPress/wordpress-develop repo...

Commits I've made:

git log --author=westonruter --oneline | wc -l

Props I've received:

git log --grep '[Pp]rops.*westonruter' --oneline | wc -l

Self-propped commits:

git log --author=westonruter --grep '[Pp]rops.*westonruter' --oneline | wc -l

Commits I was propped but did not commit (no self-props):

git log --grep='[Pp]rops.*westonruter' --author='^(?!Weston Ruter)' --oneline --perl-regexp

Commits which I authored but did not prop myself (no self-props):

git log --author=westonruter --invert-grep --grep='[Pp]rops.*westonruter' --oneline

Commits which I did which I self-propped:

git log --author=westonruter --grep='[Pp]rops.*westonruter' --oneline
git log --grep='[Pp]rops.*westonruter' --author='^(?!Weston Ruter)' --perl-regexp --format="%ad" --date=short > dates-for-commits-without-self-props.txt
git log --author=westonruter --invert-grep --grep='[Pp]rops.*westonruter' --format="%ad" --date=short > dates-for-commits-with-self-props.txt
git log --author=westonruter --grep='[Pp]rops.*westonruter' > dates-for-props-not-self-committed.txt

Gathering commit years for putting into a histogram:

git log --reverse --grep='[Pp]rops.*westonruter' --author='^(?!Weston Ruter)' --perl-regexp --format="%ad" --date=format:%Y | sort > years.props-only.txt
git log --reverse --author=westonruter               --grep='[Pp]rops.*westonruter' --format="%ad" --date=format:%Y | sort > years.self-prop-commits.txt
git log --reverse --author=westonruter --invert-grep --grep='[Pp]rops.*westonruter' --format="%ad" --date=format:%Y | sort > years.other-prop-commits.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment