From: Nathan Kinsinger <[email protected]>
Better indicates the information needed and stops a compiler warning about
wrong type (there are other initWithRepository: methods that take a different
type).
---
PBGitConfig.h | 3 ++-
PBGitConfig.m | 2 +-
PBGitRepository.m | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/PBGitConfig.h b/PBGitConfig.h
index 902f285..11be2d0 100644
--- a/PBGitConfig.h
+++ b/PBGitConfig.h
@@ -15,5 +15,6 @@
}
- (id) init;
-- (id) initWithRepository:(NSString *)path;
+- (id) initWithRepositoryPath:(NSString *)path;
+
@end
diff --git a/PBGitConfig.m b/PBGitConfig.m
index 0ec363c..c6f574c 100644
--- a/PBGitConfig.m
+++ b/PBGitConfig.m
@@ -24,7 +24,7 @@ - (id) init
return self;
}
-- (id) initWithRepository:(NSString *)path
+- (id) initWithRepositoryPath:(NSString *)path
{
repositoryPath = path;
return self;
diff --git a/PBGitRepository.m b/PBGitRepository.m
index f6c4075..42791a1 100644
--- a/PBGitRepository.m
+++ b/PBGitRepository.m
@@ -128,7 +128,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];
--
1.7.0
To unsubscribe from this group, send email to gitx+unsubscribegooglegroups.com
or reply to this email with the words "REMOVE ME" as the subject.