Sha256: 747c534f72a93b88f6f4e33c451b37494f398cb67dd54a5a8cb49a44134aa23c
Contents?: true
Size: 724 Bytes
Versions: 5
Compression:
Stored size: 724 Bytes
Contents
difficulty 2 description "The README file has been committed, but it looks like the file `forgotten_file.rb` was missing from the commit. Add the file and amend your previous commit to include it." setup do repo.init FileUtils.touch("README") repo.add("README") repo.commit_all("Initial commit") FileUtils.touch("forgotten_file.rb") end solution do # Reset config - see issue #74 file = File.open(".git/config", "w") do |file| file.puts("[format]") file.puts(" pretty = medium") end repo.commits.length == 1 && Grit::CommitStats.find_all(repo, repo.commits.first.sha).first[1].files.length == 2 end hint do puts "Running `git commit --help` will display the man page and possible flags." end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
githug-0.3.3 | levels/commit_amend.rb |
githug-0.3.2 | levels/commit_amend.rb |
githug-0.3.1 | levels/commit_amend.rb |
githug-0.3.0 | levels/commit_amend.rb |
githug-0.2.12 | levels/commit_amend.rb |