Skip to content

Instantly share code, notes, and snippets.

@nz
Forked from bradly/Git commits by day
Created June 17, 2009 17:50
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 nz/131383 to your computer and use it in GitHub Desktop.
Save nz/131383 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'grit'
ddp = Grit::Repo.new("/Users/nick/Sites/ddp")
ddp.commits('qualcomm', 100).select{ |commit| commit.author.name =~ /Zadrozny/ }.each do |commit|
puts "%s - %s - %s" % [
commit.date.strftime('%a, %d %b, %H:%m'),
commit.id_abbrev,
commit.short_message
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment