Files
gitx/PBGitRepository.h
T
Pieter de Bie 2e4ea6edab Load commit list in a separate thread
This makes the initial startup much faster. Commits get loaded in a separate
thread, and are displayed every 1000 commits.

There is a bug in here that makes fails a click while it is loading the commit
list. Not sure how to fix this, perhaps send the arrayController?
2008-06-15 16:46:25 +02:00

29 lines
568 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>
@interface PBGitRepository : NSObject {
NSString* path;
NSArray* commits;
}
+ (void) setGitPath;
+ (PBGitRepository*) repositoryWithPath:(NSString*) path;
- (PBGitRepository*) initWithPath:(NSString*) path;
- (NSFileHandle*) handleForCommand:(NSString*) cmd;
- (void) initializeCommits;
- (void) addCommit: (id)obj;
@property (copy) NSString* path;
@property (retain) NSArray* commits;
@end