mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
ede8892dc9
The revision walking code made the PBGitRepository unclean. Especially if we want to keep multiple PBGitRepository objects around (e.g. persistent data store), it needs to be more simple. This neatly extracts the revision walking code from the repository code.
31 lines
669 B
Objective-C
31 lines
669 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"
|
|
|
|
@interface PBGitRepository : NSObject {
|
|
NSString* path;
|
|
PBGitRevList* revisionList;
|
|
}
|
|
|
|
+ (void) setGitPath;
|
|
|
|
+ (PBGitRepository*) repositoryWithPath:(NSString*) path;
|
|
- (PBGitRepository*) initWithPath:(NSString*) path;
|
|
|
|
- (NSFileHandle*) handleForCommand:(NSString*) cmd;
|
|
- (NSFileHandle*) handleForArguments:(NSArray*) args;
|
|
- (void) initializeCommits;
|
|
- (void) addCommit: (id)obj;
|
|
|
|
@property (copy) NSString* path;
|
|
@property (readonly) PBGitRevList* revisionList;
|
|
|
|
@end
|