Declared in | GITObject.h |
---|
Protocol for children of the GITObject
class to implement.
The protocol defines the methods which a GITObject child should implement but which are not really appropriate to be defined within the GITObject
class itself.
+ typeName
required
+ type
required
- initFromData:sha1:repo:error:
required
- rawContent
required
+ (NSString *)typeName
string type of the receiver
Returns the string type of the receiving GITObject
child class.
GITObject
.h
+ (GITObjectType)type
GITObject
Type of the receiver
Returns the GITObjectType of the receiving GITObject
child class.
GITObject
.h
- (id)initFromData:(NSData *)data sha1:(GITObjectHash *)objectHash repo:(GITRepo *)repo error:(NSError **)error
Data containing the representation of the object to create
The SHA1 hash of the receiver
Repository parent of the object
NSError
describing any errors which occurred
Instance of the receiving class
Creates and returns an instance of the receiving class.
The data contains the representation of the object to create, the repo specifies the parent repository and where any additional objects associated with the object may be loaded from.
GITObject
.h
- (NSData *)rawContent
NSData
of the formatted object body
Returns the content of the receiver as required for writing to the filesystem or PACK file.
GITObject
.h
Last updated: 2011-2-20