| Declared in | GITCommitEnumerator.h | 
|---|
An NSEnumerator subclass which provides the ability to iterate or collect the series of parents of a given commit.
The enumerator provides two distinct enumeration modes. The first and default mode is breadth first traversal and is specified via GITCommitEnumeratorBreadthFirstMode passed as the mode argument to either +enumeratorFromCommit:mode: or -initFromCommit:mode: method. The second enumeration mode performs a depth first traversal and is specified via GITCommitEnumeratorDepthFirstMode. 
+ (GITCommitEnumerator *)enumeratorFromCommit:(GITCommit *)head Commit object from which the receiver will enumerate from
An enumerator which will start from the head using breadth first traversal
Creates and returns an enumerator from the given commit head.
The enumerator is created with the default enumeration mode. The default enumeration mode is GITCommitEnumeratorBreadthFirstMode indicating the use of breadth first traversal algorithm.
GITCommitEnumerator.h+ (GITCommitEnumerator *)enumeratorFromCommit:(GITCommit *)head mode:(GITCommitEnumeratorMode)mode Commit object from which the receiver will enumerate from
A GITCommitEnumeratorMode flag indicating the type of enumeration to be used 
An enumerator object which will start from the head using the specified mode
Creates and returns an enumerator from the given commit head using the provided enumeration mode.
GITCommitEnumerator.h- (id)initFromCommit:(GITCommit *)head mode:(GITCommitEnumeratorMode)mode Commit object from which the receiver will enumerate from
A GITCommitEnumeratorMode flag indicating the type of enumeration to be used 
An enumerator object initialised with the given commit head and mode
Initialises a newly allocated enumerator object initialised with the given commit head and mode.
GITCommitEnumerator.hLast updated: 2011-2-20