Declared in | GITRef.h |
---|
GITRef
objects provide access to git references.
name
property
link
property
targetName
property
@property NSString *name
Name of the reference.
GITRef
.h
@property BOOL link
Flag indicating if the reference is a link to another reference or not.
The accessor for this property is isLink
GITRef
.h
@property NSString *targetName
Value of the reference.
If the receiver is a link then targetName
contains the name of the reference it points to. If the receiver is not a link then targetName
contains the SHA1 hash of the GITObject
the reference points to.
GITRef
.h
+ (id)refWithName:(NSString *)theName andTarget:(NSString *)theTarget inRepo:(GITRepo *)theRepo
Name of the reference
Link target or SHA1 hash of object
Repository the reference exists in
reference with the specified name, target and repository
Creates an autoreleased reference with the specified name, target and repository.
GITRef
.h
- (id)initWithName:(NSString *)theName andTarget:(NSString *)theTarget inRepo:(GITRepo *)theRepo
Name of the reference
Link target or SHA1 hash of object
Repository the reference exists in
reference with the specified name, target and repository
Initialises a reference with the specified name, target and repository
GITRef
.h
- (GITRef *)resolve
reference linked to by the receiver, returns the receiver if not a link
Returns the reference linked to by the receiver, returns the receiver if not a link.
The links will be resolved until the first non-link ref is found.
GITRef
.h
- (GITObject *)target
Object the resolved receiver references
Returns the object referenced by resolving the receiver.
GITRef
.h
Last updated: 2011-2-20