Sha256: 5e41c812341a7ba3c1d3a09544d429380e70fd9858c02bfd82f1c8c85a62dcff

Contents?: true

Size: 772 Bytes

Versions: 14

Compression:

Stored size: 772 Bytes

Contents

difficulty 4
description "You have committed several times but in the wrong order. Please reorder your commits"

setup do
  repo.init

  FileUtils.touch "README"
  repo.add        "README"
  repo.commit_all "Initial Setup"

  FileUtils.touch "file1"
  repo.add        "file1"
  repo.commit_all "First commit"

  FileUtils.touch "file3"
  repo.add        "file3"
  repo.commit_all "Third commit"

  FileUtils.touch "file2"
  repo.add        "file2"
  repo.commit_all "Second commit"
end

solution do
  return false unless repo.commits[2].message == "First commit"
  return false unless repo.commits[1].message == "Second commit"
  return false unless repo.commits[0].message == "Third commit"
  true
end

hint do
  puts "Take a look the -i flag of the rebase command."
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
githug-0.3.3 levels/reorder.rb
githug-0.3.2 levels/reorder.rb
githug-0.3.1 levels/reorder.rb
githug-0.3.0 levels/reorder.rb
githug-0.2.12 levels/reorder.rb
githug-0.2.11 levels/reorder.rb
githug-0.2.10 levels/reorder.rb
githug-0.2.9 levels/reorder.rb
githug-0.2.8 levels/reorder.rb
githug-0.2.7 levels/reorder.rb
githug-0.2.6 levels/reorder.rb
githug-0.2.5 levels/reorder.rb
githug-0.2.4 levels/reorder.rb
githug-0.2.3 levels/reorder.rb