Skip to content

Instantly share code, notes, and snippets.

@kylebrowning
Forked from joshuajabbour/git last
Created February 26, 2011 18: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 kylebrowning/845480 to your computer and use it in GitHub Desktop.
Save kylebrowning/845480 to your computer and use it in GitHub Desktop.
[alias]
last = "!fn() { S=1; A=`git config --get user.name`; if [ -n \"$1\" ]; then S=\"$1\"; shift; fi; if [ -n \"$1\" ]; then if [ \"$1\" != \"me\" ]; then A=\"$1\"; fi; shift; fi; git log -i --since=\"$S days ago\" --author=\"$A\" --branches --remotes --format='%C(yellow)%t%Creset %s (%an)' \"$@\"; }; fn"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment