Skip to content

Instantly share code, notes, and snippets.

@dce
Created April 2, 2009 20:01
Show Gist options
  • Save dce/89402 to your computer and use it in GitHub Desktop.
Save dce/89402 to your computer and use it in GitHub Desktop.
gitlog.rb
#!/usr/bin/ruby
require 'rubygems'
require 'activesupport'
require 'git'
AUTHORS = ['deisinger', 'David Eisinger']
Git.open('.').log(300).select { |commit|
AUTHORS.include?(commit.author.name) and commit.message.strip.match(/^(Merge|git-svn)/).nil?
}.group_by {|commit| commit.date.to_date }.sort.reverse.each do |date, commits|
puts "-- #{date.strftime('%A, %D')} --\n\n#{commits.map(&:message) * "\n"}\n\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment