Sha256: cf73593568a093f71a660b28f75c698686643bf1e339812852338b6de0092c64
Contents?: true
Size: 441 Bytes
Versions: 13
Compression:
Stored size: 441 Bytes
Contents
difficulty 3 description "We have a file called `oldfile.txt`. We want to rename it to `newfile.txt` and stage this change." setup do repo.init FileUtils.touch("oldfile.txt") repo.add("oldfile.txt") repo.commit_all("Commited oldfile.txt") end solution do repo.status["oldfile.txt"].type == "D" && repo.status["newfile.txt"].type == "A" && repo.status["oldfile.txt"].stage.nil? end hint do puts "Take a look at `git mv`." end
Version data entries
13 entries across 13 versions & 2 rubygems