Skip to content

Commit b57c1b4

Browse files
committed
Fixed a small typo.
1 parent 0ec81d1 commit b57c1b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PBGitSidebarController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
- (void)setHistorySearch:(NSString *)searchString mode:(NSInteger)mode;
4848

49-
-(NSNumber *)countCommintsOf:(NSString *)range;
49+
-(NSNumber *)countCommitsOf:(NSString *)range;
5050
-(bool)remoteNeedFetch:(NSString *)remote;
5151

5252
@property(strong, readonly) NSMutableArray *items;

PBGitSidebarController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ -(void)updateMetaDataforBranches:(PBSourceViewItem *)theBranches
175175
for(PBGitSVBranchItem* branch in [theBranches children]){
176176
if([branch isKindOfClass:[PBGitSVBranchItem class]]){
177177
dispatch_async(PBGetWorkQueue(),^{
178-
id ahead = [self countCommintsOf:[NSString stringWithFormat:@"origin/%@..%@",branch.revSpecifier,branch.revSpecifier]];
179-
id behind = [self countCommintsOf:[NSString stringWithFormat:@"%@..origin/%@",branch.revSpecifier,branch.revSpecifier]];
178+
id ahead = [self countCommitsOf:[NSString stringWithFormat:@"origin/%@..%@",branch.revSpecifier,branch.revSpecifier]];
179+
id behind = [self countCommitsOf:[NSString stringWithFormat:@"%@..origin/%@",branch.revSpecifier,branch.revSpecifier]];
180180
dispatch_async(dispatch_get_main_queue(),^{
181181
[branch setAhead:ahead];
182182
[branch setBehind:behind];
@@ -205,7 +205,7 @@ -(void)evaluateRemoteBadge:(PBGitSVRemoteItem *)remote
205205
}
206206
}
207207

208-
-(NSNumber *)countCommintsOf:(NSString *)range
208+
-(NSNumber *)countCommitsOf:(NSString *)range
209209
{
210210
NSArray *args = [NSArray arrayWithObjects:@"rev-list", range, nil];
211211
int ret;

0 commit comments

Comments
 (0)