Method: Git::Status#pretty_file

Defined in:
lib/git/status.rb

#pretty_file(file) ⇒ Object



36
37
38
39
40
41
42
43
44
45
# File 'lib/git/status.rb', line 36

def pretty_file(file)
  <<FILE
#{file.path}
\tsha(r) #{file.sha_repo.to_s} #{file.mode_repo.to_s}
\tsha(i) #{file.sha_index.to_s} #{file.mode_index.to_s}
\ttype   #{file.type.to_s}
\tstage  #{file.stage.to_s}
\tuntrac #{file.untracked.to_s}
FILE
end