Sha256: 5d6d068e66fc9129f5be92ec7e99995e0927ef73cbede785e69d3295a174aad0

Contents?: true

Size: 304 Bytes

Versions: 33

Compression:

Stored size: 304 Bytes

Contents

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

Version data entries

33 entries across 33 versions & 13 rubygems

Version Path
boof-grit-1.1.2 examples/ex_add_commit.rb
davetron5000-grit-1.1.2 examples/ex_add_commit.rb
davetron5000-grit-1.1.3 examples/ex_add_commit.rb
joelmoss-grit-1.1.4 examples/ex_add_commit.rb
joelmoss-grit-1.1.5 examples/ex_add_commit.rb
joelmoss-grit-1.1.6 examples/ex_add_commit.rb
square-circle-triangle-grit-1.1.3 examples/ex_add_commit.rb
square-circle-triangle-grit-1.1.4 examples/ex_add_commit.rb
tekkub-fugit-0.0.6 lib/grit/examples/ex_add_commit.rb
tekkub-fugit-0.0.7 lib/grit/examples/ex_add_commit.rb
trans-grit-2.5.0 examples/ex_add_commit.rb
gitlab-grit-2.5.0 examples/ex_add_commit.rb
gitlab-grit-1.0.0 examples/ex_add_commit.rb
grit-2.5.0 examples/ex_add_commit.rb
jugyo-grit-2.4.2 examples/ex_add_commit.rb
rhomobile-grit-2.4.2 examples/ex_add_commit.rb
rhomobile-grit-2.4.1 examples/ex_add_commit.rb
grit-2.4.1 examples/ex_add_commit.rb
grit-2.4.0 examples/ex_add_commit.rb
schleyfox-grit-2.3.0.1 examples/ex_add_commit.rb