Declared in | GITPackFile.h |
---|
GITPackFile
is a class which provides access to individual PACK files within a git repository.
A PACK file is an archive format used by git primarily for network transmission of repository objects. Once transmitted the received PACK files are then used for access to the stored objects.
+ (id)packWithPath:(NSString *)packPath error:(NSError **)error
Path to the PACK file
NSError
describing the error that occurred
PACK File object or nil if an error occurred
Create an autoreleased PACK file with the specified path.
GITPackFile
.h
- (id)initWithPath:(NSString *)packPath error:(NSError **)error
Path to the PACK file
NSError
describing the error that occurred
PACK File object or nil if an error occurred
Initialises a PACK file with the specified path.
GITPackFile
.h
- (id)initWithData:(NSData *)packData indexPath:(NSString *)indexPath error:(NSError **)error
NSData
object of the PACK file data
Path to the PACK files Index file
NSError
describing the error that occurred
PACK file object or nil if an error occurred
Initialises a PACK file with the specified data and path to index file.
GITPackFile
.h
- (NSUInteger)version
Integer version of the PACK file
Returns the PACK file version.
GITPackFile
.h
- (GITPackIndex *)index
index of the receiver
Returns the index of the receiver
GITPackFile
.h
- (NSUInteger)numberOfObjects
number of objects in the receiver
Returns the number of objects stored in the receiver
GITPackFile
.h
- (GITPackObject *)unpackObjectWithSha1:(GITObjectHash *)objectHash error:(NSError **)error
Hash identifying the object data to retrieve
NSError
describing the error which occurred
pack object for the specified objectHash or nil if an error occurred
Returns a pack object identified by objectHash.
The pack object consists of the data required to create a proper git object.
GITPackFile
.h
Last updated: 2011-2-20