File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ - (GTBranchType)branchType {
146
146
}
147
147
148
148
- (NSArray *)uniqueCommitsRelativeToBranch : (GTBranch *)otherBranch error : (NSError **)error {
149
- GTEnumerator *enumerator = [self .repository enumeratorForCommitsStartingAtOID :self .OID endingAtOID : otherBranch.OID error: error];
149
+ GTEnumerator *enumerator = [self .repository enumeratorForUniqueCommitsFromOID :self .OID relativeToOID : otherBranch.OID error: error];
150
150
return [enumerator allObjectsWithError: error];
151
151
}
152
152
Original file line number Diff line number Diff line change @@ -555,15 +555,15 @@ NS_ASSUME_NONNULL_BEGIN
555
555
// / Returns whether `ahead` and `behind` were successfully calculated.
556
556
- (BOOL )calculateAhead : (size_t *)ahead behind : (size_t *)behind ofOID : (GTOID *)headOID relativeToOID : (GTOID *)baseOID error : (NSError **)error ;
557
557
558
- // / Creates an enumerator for walking the local commits beginning at one OID and
559
- // / ending at another. It will *not* include the commit for `endingOID` .
558
+ // / Creates an enumerator for walking the unique commits, as determined by a
559
+ // / pushing a starting OID and hiding the relative OID .
560
560
// /
561
- // / startingOID - The starting OID.
562
- // / endingOID - The ending OID.
561
+ // / fromOID - The starting OID.
562
+ // / relativeOID - The OID to hide .
563
563
// / error - The error if one occurred.
564
564
// /
565
565
// / Returns the enumerator or nil if an error occurred.
566
- - (nullable GTEnumerator *)enumeratorForCommitsStartingAtOID : (GTOID *)startingOID endingAtOID : (GTOID *)endingOID error : (NSError **)error ;
566
+ - (nullable GTEnumerator *)enumeratorForUniqueCommitsFromOID : (GTOID *)fromOID relativeToOID : (GTOID *)relativeOID error : (NSError **)error ;
567
567
568
568
@end
569
569
Original file line number Diff line number Diff line change @@ -894,17 +894,17 @@ - (BOOL)calculateAhead:(size_t *)ahead behind:(size_t *)behind ofOID:(GTOID *)he
894
894
return YES ;
895
895
}
896
896
897
- - (nullable GTEnumerator *)enumeratorForCommitsStartingAtOID : (GTOID *)startingOID endingAtOID : (GTOID *)endingOID error : (NSError **)error {
898
- NSParameterAssert (startingOID != nil );
899
- NSParameterAssert (endingOID != nil );
897
+ - (nullable GTEnumerator *)enumeratorForUniqueCommitsFromOID : (GTOID *)fromOID relativeToOID : (GTOID *)relativeOID error : (NSError **)error {
898
+ NSParameterAssert (fromOID != nil );
899
+ NSParameterAssert (relativeOID != nil );
900
900
901
901
GTEnumerator *enumerator = [[GTEnumerator alloc ] initWithRepository: self error: error];
902
902
if (enumerator == nil ) return nil ;
903
903
904
- BOOL success = [enumerator pushSHA: startingOID .SHA error: error];
904
+ BOOL success = [enumerator pushSHA: fromOID .SHA error: error];
905
905
if (!success) return nil ;
906
906
907
- success = [enumerator hideSHA: endingOID .SHA error: error];
907
+ success = [enumerator hideSHA: relativeOID .SHA error: error];
908
908
if (!success) return nil ;
909
909
910
910
return enumerator;
You can’t perform that action at this time.
0 commit comments