Declared in | GITTreeItem.h |
---|
The GITTreeItem
class represents the information stored in a GITree object.
GITTrees are made up of items specifying the mode, name and SHA1 reference of objects which are part of that tree. The GITTree parses the items of its object data and creates and array of GITTreeItem
objects. The Tree Item is then capable of lazily loading the target objects of the reference.
Tree the item belongs to.
@property GITTree *parent
GITTreeItem
.h
File/directory mode of the item.
@property NSUInteger mode
GITTreeItem
.h
Name of the file or directory.
@property NSString *name
GITTreeItem
.h
Item being pointed to.
@property GITObject *item
GITTreeItem
.h
Hash of the item (tree/blob) referred to.
@property GITObjectHash *sha1
GITTreeItem
.h
+ (GITTreeItem *)itemInTree:(GITTree *)tree withMode:(NSUInteger)mode name:(NSString *)name sha1:(GITObjectHash *)sha1
The tree the item is a part of
The file mode of the object referenced
The name of the object referenced
The sha1 of the object referenced
a tree item object
Creates and returns a tree content item with the mode, name and sha1.
GITTreeItem
.h
- (id)initInTree:(GITTree *)tree withMode:(NSUInteger)mode name:(NSString *)name sha1:(GITObjectHash *)sha1
The tree the item is a part of
The file mode of the object referenced
The name of the object referenced
The sha1 of the object referenced
a tree item object
Creates and returns a tree content item with the mode, name and sha1.
GITTreeItem
.h
- (BOOL)isLink
YES if the receiver represents a link, NO if not
Indicates if the receiver represents a link.
GITTreeItem
.h
- (BOOL)isFile
YES if the receiver represents a file, NO if not
Indicates if the receiver represents a file (blob).
GITTreeItem
.h
- (BOOL)isDirectory
YES if the receiver represents a directory, NO if not
Indicates if the receiver represents a directory (tree).
GITTreeItem
.h
- (BOOL)isModule
YES if the receiver represents a submodule, NO if not
Indicates if the receiver represents a submodule.
GITTreeItem
.h
- (BOOL)isEqual:(id)other
The object to be compared to the receiver
YES if the receiver and other are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given object are equal.
GITTreeItem
.h
- (BOOL)isEqualToTreeItem:(GITTreeItem *)rhs
The Tree Item with which to compare the receiver
YES if the receiver and hash are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given Tree Item are equal.
GITTreeItem
.h
- (BOOL)isEqualToObject:(GITObject *)rhs
The GITObject
with which to compare the receiver
YES if the receiver and hash are equal, otherwise NO
Returns a Boolean value that indicates whether the receiver and a given GITObject
are equal.
GITTreeItem
.h
Last updated: 2011-2-20