- Added controller 4 stashes, submodules, reset management

- Added additional menu for the repository actions
- Added action for 'Revealing in Finder'
This commit is contained in:
Tomasz Krasnyk
2010-11-28 00:41:27 +01:00
parent f12187338e
commit be507c8230
12 changed files with 516 additions and 99 deletions
+17
View File
@@ -0,0 +1,17 @@
//
// PBRevealWithFinder.h
// GitX
//
// Created by Tomasz Krasnyk on 10-11-27.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBOpenDocumentCommand.h"
@interface PBRevealWithFinderCommand : PBOpenDocumentCommand {
}
@end
+31
View File
@@ -0,0 +1,31 @@
//
// PBRevealWithFinder.m
// GitX
//
// Created by Tomasz Krasnyk on 10-11-27.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "PBRevealWithFinderCommand.h"
@implementation PBRevealWithFinderCommand
- (id) initWithDocumentAbsolutePath:(NSString *) path {
if (!path) {
[self autorelease];
return nil;
}
if (self = [super initWithDisplayName:@"Reveal in Finder" parameters:nil repository:nil]) {
documentURL = [[NSURL alloc] initWithString:path];
}
return self;
}
- (void) invoke {
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
[ws selectFile:[documentURL absoluteString] inFileViewerRootedAtPath:nil];
}
@end