module Grit
  class Blob
    def id
      @repo.git.rev_parse({}, @id)
    end
  end
end

module Grit
  class Blob
    def id
      @repo.git.rev_parse({}, @id)
    end

    def create_tempfile
      file = Tempfile.new(id)
      file.write(data)
      file.close
      file
    end
  end
end

Add create_tempfile method for Grit::Blob
Add create_tempfile method for Grit::Blob
