Method: Git::Status#pretty

Defined in:
lib/git/status.rb

#prettyObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/git/status.rb', line 27

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"
  end
  out << "\n"
  out
end