Inherits from | |
---|---|
Conforms to | |
Declared in | GITTag.h |
This class represents Tag objects in a git repository.
Tag objects attach a conventional name to another object in the repository, typically a commit. The creation of the tag is dated and attributed to a specific actor within the repository, freqently a description of the meaning of the name is included.
* object 1615307cc4523f183e777df67f168c86908e8007 * type commit * tag v1.0.0 * tagger A. Developer <dev@example.com> 444123000 +0000 * * A tag message meant to describe what this tag defines *
name
propertyName of the tag.
target
propertyCache of the target once we've found it.
tagger
propertyActor who created the tag.
taggerDate
propertyDate the tag was created.
message
propertyTag message.
Name of the tag.
@property NSString *name
GITTag
.h
Cache of the target once we've found it.
@property GITObject *target
GITTag
.h
Actor who created the tag.
@property GITActor *tagger
GITTag
.h
Date the tag was created.
@property GITDateTime *taggerDate
GITTag
.h
Tag message.
@property NSString *message
GITTag
.h
+ (GITTag *)tagFromData:(NSData *)data sha1:(GITObjectHash *)objectHash repo:(GITRepo *)repo error:(NSError **)error
The data describing the tag
The SHA1 hash of the receiver
The repository the tag is a member of
NSError
describing the error that occurred
A tag object from the data
Creates and returns a tag from the data.
The data content is parsed to extract the information about the tag such as the name, referenced object, tagger, dates and the tag message.
GITTag
.h
- (BOOL)refersToObjectHash:(GITObjectHash *)objectHash
Object Hash to compare with the receivers target object hash
YES if the object hash matches that of the targets object hash, NO otherwise.
Checks if the receivers target object hash matches the objectHash given.
GITTag
.h
- (BOOL)refersToObject:(GITObject *)object
GITObject
to compare with the receivers target object.
YES if the object matches that of the receivers target object, NO otherwise.
Checks if the receivers target matches the object given.
GITTag
.h
Last updated: 2011-2-20