mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
b85a205698
Multiple repositories can now be opened by using the File → Open… menu option. Each document is a PBGitRepository with a PBDetailController controlling the window. PBRepositoryDocumentController is the document controller. When launched, the application will attempt to open a repository with the current directory as its path. If this fails it will display an open panel to allow the user to select one.
29 lines
638 B
Objective-C
29 lines
638 B
Objective-C
//
|
|
// PBGitRepository.h
|
|
// GitTest
|
|
//
|
|
// Created by Pieter de Bie on 13-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitRevList.h"
|
|
|
|
extern NSString* PBGitRepositoryErrorDomain;
|
|
|
|
@interface PBGitRepository : NSDocument {
|
|
NSString* path;
|
|
PBGitRevList* revisionList;
|
|
}
|
|
|
|
+ (PBGitRepository*) repositoryWithPath:(NSString*) path;
|
|
- (PBGitRepository*) initWithPath:(NSString*) path;
|
|
|
|
- (NSFileHandle*) handleForCommand:(NSString*) cmd;
|
|
- (NSFileHandle*) handleForArguments:(NSArray*) args;
|
|
|
|
@property (copy) NSString* path;
|
|
@property (readonly) PBGitRevList* revisionList;
|
|
|
|
@end
|