Method: Git::Diff::DiffFile#blob

Defined in:
lib/git/diff.rb

#blob(type = :dst)



92
93
94
95
96
97
98
# File 'lib/git/diff.rb', line 92

def blob(type = :dst)
  if type == :src && !NIL_BLOB_REGEXP.match(@src)
    @base.object(@src)
  elsif !NIL_BLOB_REGEXP.match(@dst)
    @base.object(@dst)
  end
end