Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0bd0c5ff03
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.304 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
require '../lib/grit'

count = 1
Dir.chdir("/Users/schacon/projects/atest") do
  r = Grit::Repo.new('.')
  while(count < 10) do
    fname = Time.now.to_i.to_s + count.to_s
    File.open(fname, 'w') { |f| f.write('hellor ' + fname) }
    r.add(fname)
    count += 1
  end
  r.commit_index('my commit')
end
Something went wrong with that request. Please try again.