diff --git a/lib/git/status.rb b/lib/git/status.rb index 0e173620..d59bc777 100644 --- a/lib/git/status.rb +++ b/lib/git/status.rb @@ -27,17 +27,22 @@ def untracked def pretty out = '' self.each do |file| - out << file.path - out << "\n\tsha(r) " + file.sha_repo.to_s + ' ' + file.mode_repo.to_s - out << "\n\tsha(i) " + file.sha_index.to_s + ' ' + file.mode_index.to_s - out << "\n\ttype " + file.type.to_s - out << "\n\tstage " + file.stage.to_s - out << "\n\tuntrac " + file.untracked.to_s - out << "\n" + out << pretty_file(file) end out << "\n" out end + + def pretty_file(file) + <