Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 736 Bytes
#!/usr/bin/env ruby
# Intended for use with geektool.
require 'rubygems'
require "#{File.expand_path(File.dirname(__FILE__))}/support/helpers"
options_for __FILE__, :author => { :required => true,
:text => 'Name of author whose commits to count.'},
:projects => { :required => true, :type => Array,
:text => 'List of paths to projects in which to count commits.'}
entries = do |path|
" #{`cd #{path} && /usr/local/bin/git log --all --since=yesterday --until=today --pretty=oneline --author=#{@author} | wc -l`.strip} in #{File.basename(path)}"
puts <<-STATS
my commits since yesterday