Permalink
Browse files

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).
  • Loading branch information...
1 parent 370c132 commit 1c4601dd5229516ddcba9c6e8b0486efd9f21324 @brotherbard committed Dec 5, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 PBGitConfig.h
  2. +1 −1 PBGitConfig.m
  3. +1 −1 PBGitRepository.m
View
@@ -15,5 +15,5 @@
}
- init;
-- initWithRepository:(NSString *)path;
+- initWithRepositoryPath:(NSString *)path;
@end
View
@@ -17,7 +17,7 @@ @implementation PBGitConfig
return self;
}
-- initWithRepository:(NSString *)path
+- initWithRepositoryPath:(NSString *)path
{
repositoryPath = path;
return self;
View
@@ -118,7 +118,7 @@ - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSEr
- (void) setup
{
- config = [[PBGitConfig alloc] initWithRepository:self.fileURL.path];
+ config = [[PBGitConfig alloc] initWithRepositoryPath:[[self fileURL] path]];
self.branches = [NSMutableArray array];
[self reloadRefs];
revisionList = [[PBGitRevList alloc] initWithRepository:self];

0 comments on commit 1c4601d

Please sign in to comment.