class Git::Diff::DiffFile
Constants
- NIL_BLOB_REGEXP
Attributes
Public Class Methods
Source
# File lib/git/diff.rb, line 86 def initialize(base, hash) @base = base @patch = hash[:patch] @path = hash[:path] @mode = hash[:mode] @src = hash[:src] @dst = hash[:dst] @type = hash[:type] @binary = hash[:binary] end
Public Instance Methods
Source
# File lib/git/diff.rb, line 101 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