# File lib/git/diff.rb, line 72 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
# File lib/git/diff.rb, line 83 def binary? !!@binary end
# File lib/git/diff.rb, line 87 def blob(type = :dst) if type == :src @base.object(@src) if @src != '0000000' else @base.object(@dst) if @dst != '0000000' end end