public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/andrewlmurray/gitnub.git
Search Repo:
gitnub / nub / nub.m
100644 17 lines (12 sloc) 0.467 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <Cocoa/Cocoa.h>
 
int main (int argc, const char * argv[]) {
    char buf[PATH_MAX];
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
 
    // NSArray *myArgs = [[NSProcessInfo processInfo] arguments];
    // NSLog(@"%@", myArgs);
 
    NSString *path=[[NSString alloc] initWithCString:getcwd(buf, sizeof(buf))];
 
    [[NSWorkspace sharedWorkspace] openFile:path withApplication:@"GitNub"];
 
    [path release];
    [pool drain];
    return 0;
}