Created
December 21, 2011 17:58
-
-
Save pirapira/1506987 to your computer and use it in GitHub Desktop.
gather commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UNSORTED = "/Users/yh/unsorted.txt" | |
require "shell" | |
require "find" | |
def emit(path) | |
s = Shell.new | |
s.cd path | |
s.system('/usr/local/bin/git log --all --format="format:%at %H %an" >> ' + UNSORTED) | |
s.system('echo >> ' + UNSORTED) | |
end | |
system('rm ' + UNSORTED) | |
Find.find '/Users/yh' do |f| | |
next if f.match /src/ | |
if f.match /\.git\Z/ | |
emit f | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment