Git.framework Reference Library

GITBlob Class Reference

GITBlob Class Reference

Inherits from
Conforms to
Declared in GITBlob.h

Overview

This class represents Blob objects in a git repository.

Blob objects store the data which makes up the files of a repository, these objects have no name associated with them and are only identified by their content.

Tasks

Properties

content

object contents

@property NSData *content
Declared In
GITBlob.h

Class Methods

blobFromData:sha1:repo:error:

+ (GITBlob *)blobFromData:(NSData *)data sha1:(GITObjectHash *)objectHash repo:(GITRepo *)repo error:(NSError **)error
Parameters
data

The data to create the receiver with

objectHash

The SHA1 hash of the receiver

repo

The repository the receiver is a member of

error

NSError describing the error if one occurs

Return Value

A blob object

Discussion

Creates and returns a blob from the data.

The blob copies the data as its content and initialises the repo as its parent. The error parameter will contain a description of any errors which occur though at the moment there aren't any cases when an error would be raised when creating a blob object.

Declared In
GITBlob.h

Last updated: 2011-2-20