| Declared in | GITLooseObject.h | 
|---|
The GITLooseObject class aids in the extraction of objects from loose files.
The class combines the data of the object and the indicated type for later conversion into a normal git object type such as commit, tree, blob or tag.
When loading an object from the file system you create an instance of this class directly, this is opposed to the way in which is PACK counterpart GITPackObject is used. 
Type of the object the data represents.
@property GITObjectType typeGITLooseObject.hData of the object.
@property NSData *dataGITLooseObject.hSHA1 hash of the object.
@property GITObjectHash *sha1GITLooseObject.hSize of the receivers data.
@property NSUInteger lengthGITLooseObject.h+ (GITLooseObject *)looseObjectWithSha1:(GITObjectHash *)objectHash from:(NSString *)directory error:(NSError **)error Hash identifying the object to retrieve
Directory to locate the object within
NSError describing any errors which occurred 
Loose object containing the type and data of the object or nil if not found or an error occurred
Creates and returns a loose object identified by the objectHash from the directory specified.
Loads data from the file system for the object matching the objectHash. The object prefix is extracted from the loaded data to determine the object type of the data.
GITLooseObject.h- (id)initWithSha1:(GITObjectHash *)objectHash from:(NSString *)directory error:(NSError **)error Hash identifying the object to retrieve
Directory to locate the object within
NSError describing any errors which occurred 
Loose object containing the type and data of the object or nil if not found or an error occurred
Creates and returns a loose object identified by the objectHash from the directory specified.
Loads data from the file system for the object matching the objectHash. The object prefix is extracted from the loaded data to determine the object type of the data.
GITLooseObject.h- (GITObject *)objectInRepo:(GITRepo *)repo error:(NSError **)error Repository the object should belong to
NSError describing any errors which occurred 
object in the repo
Returns the object contained in the receiver and sets the repo of the object.
GITLooseObject.hLast updated: 2011-2-20