Sha256: 49de1b56c9a5b958ef397d2e798023737df2f86ce71c57e54eff9d7933e79733

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

# -*- encoding : utf-8 -*-
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
    `git log --format="%s"`.split.join("").match /Third.*Second.*First.*Initial/
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
mygithug-0.5.6 levels/reorder.rb
mygithug-0.5.5 levels/reorder.rb
mygithug-0.5.4 levels/reorder.rb
mygithug-0.5.3 levels/reorder.rb
mygithug-0.5.2 levels/reorder.rb