Change current document when called with different arguments

This commit is contained in:
Pieter de Bie
2008-09-12 14:47:06 +02:00
parent b6b54bcca5
commit 7b2efe1ac2
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ extern NSString* PBGitRepositoryErrorDomain;
- (id) initWithURL: (NSURL*) path andArguments:(NSArray*) array;
@property (readonly) PBGitRevList* revisionList;
@property (retain) PBGitRevList* revisionList;
@property (assign) NSArray* branches;
@property (assign) NSString* currentBranch;
@property (assign) NSDictionary* refs;
+3 -1
View File
@@ -8,6 +8,7 @@
#import "PBRepositoryDocumentController.h"
#import "PBGitRepository.h"
#import "PBGitRevList.h"
@implementation PBRepositoryDocumentController
// This method is overridden to configure the open panel to only allow
@@ -38,7 +39,8 @@
[self addDocument:document];
[document makeWindowControllers];
} else {
// TODO: Add another revwalk specifier and show that.
// TODO: Use a more decent approach for this
[document setValue: [[PBGitRevList alloc] initWithRepository:document andRevListParameters: args] forKey:@"revisionList"];
}
[document showWindows];
return document;