Declared in | GITPackFileWriter.h |
---|
GITPackFileWriter
is a class cluster which provides the ability to generate PACK files from a given set of objects.
GITPackFileWriter
objects+ (GITPackFileWriter *)packWriter
PACK file writer for the default version
Creates an autoreleased PACK file writer for the default PACK file version.
GITPackFileWriter
.h
+ (GITPackFileWriter *)packWriterVersion:(NSUInteger)version
Version of writer to create
PACK file writer with the specified version, nil if version is unsupported.
Creates an autoreleased PACK file writer for the specified version.
GITPackFileWriter
.h
- (id)initWithDefaultVersion
PACK file writer for the default version
Initialises a PACK file writer for the default PACK file version.
GITPackFileWriter
.h
- (id)initWithVersion:(NSUInteger)version error:(NSError **)error
Version of the writer to create
NSError
describing the error that occurred
PACK file writer for the specified version, or nil on error
Initialises a PACK file writer for the specified version.
GITPackFileWriter
.h
- (void)addObjectsFromRevList:(GITRevList *)revList
Rev list of objects to add to the receiver.
Add the objects reachable from the provided revList to the reciever.
GITPackFileWriter
.h
- (void)addObjectsFromCommit:(GITCommit *)commit
Commit object to reach objects from.
Add the objects reachable from the provided commit to the receiver.
GITPackFileWriter
.h
- (NSString *)name
SHA1 string name of the receiver derived from the objects to the packed
Returns the name of the receiver derived from the objects to be packed.
GITPackFileWriter
.h
- (NSString *)fileName
File name of the receiver.
Returns the file name of the receiver.
GITPackFileWriter
.h
- (void)writeToStream:(NSOutputStream *)stream inRunLoop:(NSRunLoop *)runLoop
Output stream to write the PACK index data to
NSRunLoop
to schedule the writing in
Writes the PACK file contents to the provided stream in the NSRunLoop
specified.
We need a way of getting any stream errors sent back to the client
GITPackFileWriter
.h
- (NSInteger)writeToStream:(NSOutputStream *)stream error:(NSError **)error
Output stream to write the PACK index data to
NSError
describing any error which occurred
0 if writing was successful, -1 if an error occurred.
Writes the PACK file contents to the provided steam.
This method using Polling rather than run-loop scheduling to perform the writing.
GITPackFileWriter
.h
- (GITPackIndexWriter *)indexWriter
PACK index writer of the receiver
Returns the PACK index writer of the receiver.
GITPackFileWriter
.h
- (void)setIndexWriter:(GITPackIndexWriter *)indexWriter
PACK index writer for the receiver to populate when it writes itself.
Sets the provided indexWriter on the receiver.
GITPackFileWriter
.h
Last updated: 2011-2-20