Sha256: 59eb4e6fd9946c469565bb705bc70eba81cd8ff89817d19416918d779878bdb9
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 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") system "git branch -m master" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
githug-0.5.1 | levels/rename.rb |