class Git::Status::StatusFile

subclass that does heavy lifting

def blob(type = :index)

def blob(type = :index)
  if type == :repo
    @base.object(@sha_repo)
  else
    begin
      @base.object(@sha_index)
    rescue
      @base.object(@sha_repo)
    end
  end
end

def initialize(base, hash)

def initialize(base, hash)
  @base = base
  @path = hash[:path]
  @type = hash[:type]
  @stage = hash[:stage]
  @mode_index = hash[:mode_index]
  @mode_repo = hash[:mode_repo]
  @sha_index = hash[:sha_index]
  @sha_repo = hash[:sha_repo]
  @untracked = hash[:untracked]
end