Skip to content

Instantly share code, notes, and snippets.

@marcinantkiewicz
Created December 2, 2021 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcinantkiewicz/0753925bc5408117ab0c1247e4640196 to your computer and use it in GitHub Desktop.
Save marcinantkiewicz/0753925bc5408117ab0c1247e4640196 to your computer and use it in GitHub Desktop.
function _gitlog_list_committers () {
DAYS=${1:-1}; # check last day unless more requested
git log --pretty=format:'%<(20)%cn %ce' \ # committer name and email
--after=$(date -v "-${DAYS}d" +%F) \ # in the past DAYS
--invert-grep --committer='GitHub' \ # just people, no bots
--all | \ # all branches
sort -u ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment