Skip to content

Instantly share code, notes, and snippets.

@DrummerHead
Last active December 15, 2015 08:49
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 DrummerHead/5233328 to your computer and use it in GitHub Desktop.
Save DrummerHead/5233328 to your computer and use it in GitHub Desktop.
Get a lovely string that resumes what you've been working on
#!/Users/dh/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -w
magia = %x[git log --pretty=oneline --no-merges --author=DrummerHead --since='yesterday']
unless magia.empty?
magia.gsub!(/^\w* /, "").gsub!(/\n/, "; ")
puts magia
else
puts "Gotta worky work!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment