Sha256: 446ebe874c3197fa3c411f25fd4177b1a5ac82e1fad1bf6e065921f768f77528

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 Bytes

Contents

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` }

Version data entries

20 entries across 20 versions & 7 rubygems

Version Path
boof-grit-1.1.2 test/profile.rb
davetron5000-grit-1.1.2 test/profile.rb
davetron5000-grit-1.1.3 test/profile.rb
joelmoss-grit-1.1.4 test/profile.rb
joelmoss-grit-1.1.5 test/profile.rb
joelmoss-grit-1.1.6 test/profile.rb
square-circle-triangle-grit-1.1.3 test/profile.rb
square-circle-triangle-grit-1.1.4 test/profile.rb
madrox-0.2.0 vendor/grit/test/profile.rb
madrox-0.1.1 vendor/grit/test/profile.rb
madrox-0.1.0 vendor/grit/test/profile.rb
ginst-2009.12.8 vendor/plugins/grit/test/profile.rb
ginst-2009.11.24 vendor/plugins/grit/test/profile.rb
ginst-2009.11.23 vendor/plugins/grit/test/profile.rb
ginst-2.0.1 vendor/plugins/grit/test/profile.rb
ginst-2.0.0 vendor/plugins/grit/test/profile.rb
grit-2.0.0 test/profile.rb
grit-1.0.0 test/profile.rb
grit-1.0.1 test/profile.rb
grit-1.1.0 test/profile.rb