Skip to content

Commit fde3159

Browse files
committed
Naming naming is no fun.
1 parent b94fb13 commit fde3159

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ObjectiveGit/GTBranch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ - (GTBranchType)branchType {
146146
}
147147

148148
- (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];
150150
return [enumerator allObjectsWithError:error];
151151
}
152152

ObjectiveGit/GTRepository.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,15 @@ NS_ASSUME_NONNULL_BEGIN
555555
/// Returns whether `ahead` and `behind` were successfully calculated.
556556
- (BOOL)calculateAhead:(size_t *)ahead behind:(size_t *)behind ofOID:(GTOID *)headOID relativeToOID:(GTOID *)baseOID error:(NSError **)error;
557557

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.
560560
///
561-
/// startingOID - The starting OID.
562-
/// endingOID - The ending OID.
561+
/// fromOID - The starting OID.
562+
/// relativeOID - The OID to hide.
563563
/// error - The error if one occurred.
564564
///
565565
/// 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;
567567

568568
@end
569569

ObjectiveGit/GTRepository.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -894,17 +894,17 @@ - (BOOL)calculateAhead:(size_t *)ahead behind:(size_t *)behind ofOID:(GTOID *)he
894894
return YES;
895895
}
896896

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);
900900

901901
GTEnumerator *enumerator = [[GTEnumerator alloc] initWithRepository:self error:error];
902902
if (enumerator == nil) return nil;
903903

904-
BOOL success = [enumerator pushSHA:startingOID.SHA error:error];
904+
BOOL success = [enumerator pushSHA:fromOID.SHA error:error];
905905
if (!success) return nil;
906906

907-
success = [enumerator hideSHA:endingOID.SHA error:error];
907+
success = [enumerator hideSHA:relativeOID.SHA error:error];
908908
if (!success) return nil;
909909

910910
return enumerator;

0 commit comments

Comments
 (0)