Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 443 Bytes
require File.join(File.dirname(__FILE__), *%w[.. lib grit])
include Grit
def recurse(tree, indent = "")
tree.contents.each do |c|
case c
when Tree
# puts "#{indent}#{c.name} (#{c.id})"
recurse(c, indent + " ")
end
end
end
10.times do
r = Repo.new("/Users/schacon/projects/ambition")
t = r.tree
recurse(t)
end
#500.times { puts `git --git-dir /Users/schacon/projects/ambition/.git ls-tree master` }