mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Change current document when called with different arguments
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user