Declared in | GITRevList.h |
---|
The GITRevList
class lists commit objects in reverse chronological order. A subset of the commit history can be excluded or negated from the list by calling -subtractDescendentsFromCommit: which will remove all commits reachable from the specified commit from the list.
Sorted lists of commits are provided through one of the -arrayOfCommitsSortedBy*
methods.
+ (GITRevList *)revListWithCommit:(GITCommit *)head
Commit object to list from
New rev list object with the history of the head commit.
Creates and returns a rev list object with the history from the head commit.
GITRevList
.h
- (id)initWithCommit:(GITCommit *)head
Commit object to list from
Rev list object with the history of the head commit.
Initializes and returns a rev list object with history from the head commit.
GITRevList
.h
- (void)subtractDescendentsFromCommit:(GITCommit *)tail
Removes commits from the receiver which are in the history of the given tail commit.
GITRevList
.h
- (NSArray *)arrayOfCommitsSortedByDate
array of commits sorted by date
Returns an array of commit objects sorted by their commit date.
The result of this method is equivalent to git rev-list
.
GITRevList
.h
- (NSArray *)arrayOfCommitsSortedByTopology
array of commits sorted by topology
Returns an array of commit objects sorted by topology.
The result of this method is equivalent to git rev-list --topo-order
.
GITRevList
.h
- (NSArray *)arrayOfCommitsSortedByTopologyAndDate
array of commits sorted by topology and date
Returns an array of commit objects sorted by topology and commit date.
The result of this method is equivalent to git rev-list --date-order
.
GITRevList
.h
- (NSArray *)arrayOfReachableObjects
Array of objects reachable from the head of the receiver.
Returns an array of the objects which are reachable from the head of the receiver.
This is primarily used when collecting the list of objects to include in a PACK file prior to generation.
GITRevList
.h
- (NSArray *)arrayOfReachableObjectsAndTags
Array of objects and tags reachable from the head of the receiver.
Returns an array of the objects and tags which are reachable from the head of the receiver.
GITRevList
.h
- (NSArray *)arrayOfReachableObjectsAndTags:(NSArray *)tags
Array of tags to be considered for inclusion in the resulting array. This should be an inclusive list of all tags which might be reachable from the head of the receiver.
Array of objects and tags reachable from the head of the receiver.
Returns an array of the objects and tags which are reachable from the head of the receiver.
GITRevList
.h
Last updated: 2011-2-20