Skip to content

Commit 1c4601d

Browse files
committed
PBGitConfig: Change name of -initWithRepository:
Better indicates the information needed and stops a compiler warning about wrong type (there are other initWithRepository: methods that take a different type).
1 parent 370c132 commit 1c4601d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

PBGitConfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
}
1616

1717
- init;
18-
- initWithRepository:(NSString *)path;
18+
- initWithRepositoryPath:(NSString *)path;
1919
@end

PBGitConfig.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ @implementation PBGitConfig
1717
return self;
1818
}
1919

20-
- initWithRepository:(NSString *)path
20+
- initWithRepositoryPath:(NSString *)path
2121
{
2222
repositoryPath = path;
2323
return self;

PBGitRepository.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSEr
118118

119119
- (void) setup
120120
{
121-
config = [[PBGitConfig alloc] initWithRepository:self.fileURL.path];
121+
config = [[PBGitConfig alloc] initWithRepositoryPath:[[self fileURL] path]];
122122
self.branches = [NSMutableArray array];
123123
[self reloadRefs];
124124
revisionList = [[PBGitRevList alloc] initWithRepository:self];

0 commit comments

Comments
 (0)