mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
f786fe2b0b
This adds a -readBranches function which allows you to read in all branches in our repository. It is used in the branch display popup box.
32 lines
716 B
Objective-C
32 lines
716 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 {
|
|
PBGitRevList* revisionList;
|
|
NSArray* branches;
|
|
}
|
|
|
|
+ (PBGitRepository*) repositoryWithPath:(NSString*) path;
|
|
- (PBGitRepository*) initWithPath:(NSString*) path;
|
|
|
|
- (NSFileHandle*) handleForCommand:(NSString*) cmd;
|
|
- (NSFileHandle*) handleForArguments:(NSArray*) args;
|
|
|
|
- (void) readBranches;
|
|
|
|
+ (NSURL*)gitDirForURL:(NSURL*)repositoryURL;
|
|
@property (readonly) PBGitRevList* revisionList;
|
|
@property (assign) NSArray* branches;
|
|
|
|
@end
|