Sha256: b85055c0a62d3bfbb6059d946624d162fb3aa8f5fa31d345eb8effe03da21f9b
Contents?: true
Size: 775 Bytes
Versions: 5
Compression:
Stored size: 775 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
githug-0.4.2 | levels/reorder.rb |
githug-0.4.1 | levels/reorder.rb |
githug-0.4.0 | levels/reorder.rb |
githug-0.3.5 | levels/reorder.rb |
githug-0.3.4 | levels/reorder.rb |