Files
gitx/Commands/PBOpenDocumentCommand.m
T
Tomasz Krasnyk cc5c93c2b6 - stashes can be created with optional message
- added clearing all stashes
- added possibility to ignore files with given extension
- submodules are now showed
- submodules can be opened
2010-11-07 23:37:41 +01:00

27 lines
624 B
Objective-C

//
// PBOpenDocumentCommand.m
// GitX
//
// Created by Tomasz Krasnyk on 10-11-07.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "PBOpenDocumentCommand.h"
#import "PBRepositoryDocumentController.h"
#import "PBGitRepository.h"
@implementation PBOpenDocumentCommand
- (id) initWithDocumentAbsolutePath:(NSString *) path {
if (self = [super initWithDisplayName:@"Open" parameters:nil repository:nil]) {
documentURL = [[NSURL alloc] initWithString:path];
}
return self;
}
- (void) invoke {
[[PBRepositoryDocumentController sharedDocumentController] documentForLocation:documentURL];
}
@end