Skip to content

Instantly share code, notes, and snippets.

@hugodias
Created December 19, 2016 11:10
Show Gist options
  • Select an option

  • Save hugodias/175ff96a0bd02688306af8962849a5c1 to your computer and use it in GitHub Desktop.

Select an option

Save hugodias/175ff96a0bd02688306af8962849a5c1 to your computer and use it in GitHub Desktop.
gitstalk() {
git log --author="$1" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
}
alias git-stalk=gitstalk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment