Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (20 sloc) 0.453 kb
require '../lib/grit'
count = 1
Dir.chdir("/Users/schacon/projects/atest") do
r = Grit::Repo.new('.')
i = r.index
while(count < 10) do
fname = Time.now.to_i.to_s + count.to_s
i.add(fname, 'hello ' + fname)
count += 1
end
count = 5
while(count < 10) do
puts "HELLO"
fname = Time.now.to_i.to_s + count.to_s
i.add('test/' + fname, 'hello ' + fname)
count += 1
end
puts i.commit('my commit')
puts i.inspect
end
Jump to Line
Something went wrong with that request. Please try again.