Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (54 sloc) 2.104 kb
0fda285 @pieter Use a separate Git class
pieter authored
1 //
2 // PBGitRepository.h
3 // GitTest
4 //
5 // Created by Pieter de Bie on 13-06-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
ede8892 @pieter PBGitRepository: Abstract revision walking to new class PBGitRevList
pieter authored
10 #import "PBGitRevList.h"
dea6a77 @pieter Add branch control to the PBGitRepository
pieter authored
11 #import "PBGitRevSpecifier.h"
afb3d45 @pieter Add a way to retrieve values from .git/config files
pieter authored
12 #import "PBGitConfig.h"
0fda285 @pieter Use a separate Git class
pieter authored
13
b85a205 @ciaran Completing the document-based app setup.
ciaran authored
14 extern NSString* PBGitRepositoryErrorDomain;
15
45addc1 @ciaran Setting up the Info.plist for a document-based application. PBGitRepo…
ciaran authored
16 @interface PBGitRepository : NSDocument {
ede8892 @pieter PBGitRepository: Abstract revision walking to new class PBGitRevList
pieter authored
17 PBGitRevList* revisionList;
afb3d45 @pieter Add a way to retrieve values from .git/config files
pieter authored
18 PBGitConfig *config;
86606ef @pieter Add a --commit option to the CLI client
pieter authored
19
a2217fe @pieter Reload commits after doing a commit
pieter authored
20 BOOL hasChanged;
a62e14f @pieter HistoryView: Remove the BranchController
pieter authored
21 NSMutableArray *branches;
22 PBGitRevSpecifier *currentBranch;
23 NSMutableDictionary *refs;
406125e @pieter GitRepository: Cache HEAD ref
pieter authored
24
25 PBGitRevSpecifier *_headRef; // Caching
0fda285 @pieter Use a separate Git class
pieter authored
26 }
27
28 - (NSFileHandle*) handleForCommand:(NSString*) cmd;
9be3c50 @pieter Add a Tree displayer
pieter authored
29 - (NSFileHandle*) handleForArguments:(NSArray*) args;
4ebe4b4 @pieter PBGitRepository: add a handle for in-worktree-commands
pieter authored
30 - (NSFileHandle *) handleInWorkDirForArguments:(NSArray *)args;
3e8fbf6 @pieter Refactor command output to new functions
pieter authored
31 - (NSString*) outputForCommand:(NSString*) cmd;
2676a20 @pieter Fix some compiler warnings
pieter authored
32 - (NSString *)outputForCommand:(NSString *)str retValue:(int *)ret;
33 - (NSString *)outputForArguments:(NSArray *)arguments inputString:(NSString *)input retValue:(int *)ret;
3e8fbf6 @pieter Refactor command output to new functions
pieter authored
34 - (NSString*) outputForArguments:(NSArray*) args;
faef971 @pieter EasyPipe: Add functions to ask for the return value of commands
pieter authored
35 - (NSString*) outputForArguments:(NSArray*) args retValue:(int *)ret;
252796e @pieter CommitView: Show basic files
pieter authored
36 - (NSString *)outputInWorkdirForArguments:(NSArray*) arguments;
00e44b3 @pieter RefController: Allow checking out branches
pieter authored
37 - (NSString *)outputInWorkdirForArguments:(NSArray*) arguments retValue:(int *)ret;
252796e @pieter CommitView: Show basic files
pieter authored
38
39 - (NSString *)workingDirectory;
fc00f6c CommitView: Add option to add files to .gitignore
Mark Bestley authored
40 - (NSString *)gitIgnoreFilename;
82b6efc @oyamauchi Fix ticket #84: disable commit view for bare repos
oyamauchi authored
41 - (BOOL)isBareRepository;
0fda285 @pieter Use a separate Git class
pieter authored
42
1f783c9 @pieter Reload refs on refresh
pieter authored
43 - (BOOL) reloadRefs;
44 - (void) addRef:(PBGitRef *)ref fromParameters:(NSArray *)params;
a2217fe @pieter Reload commits after doing a commit
pieter authored
45 - (void) lazyReload;
63523d0 @clj History view: Make lozenge of currently checked out branch (HEAD) bol…
clj authored
46 - (PBGitRevSpecifier*) headRef;
ea3cd72 @pieter Add support for removing refs
pieter authored
47
3e8fbf6 @pieter Refactor command output to new functions
pieter authored
48 - (void) readCurrentBranch;
0617f11 @pieter Select existing ref if it exists
pieter authored
49 - (PBGitRevSpecifier*) addBranch: (PBGitRevSpecifier*) rev;
3e8fbf6 @pieter Refactor command output to new functions
pieter authored
50
51 - (NSString*) parseSymbolicReference:(NSString*) ref;
52 - (NSString*) parseReference:(NSString*) ref;
f786fe2 @pieter Read branches in a repository
pieter authored
53
54 + (NSURL*)gitDirForURL:(NSURL*)repositoryURL;
12faa4a @ciaran Avoid showing .git dirs in the recent documents menu.
ciaran authored
55 + (NSURL*)baseDirForURL:(NSURL*)repositoryURL;
56
86606ef @pieter Add a --commit option to the CLI client
pieter authored
57 - (id) initWithURL: (NSURL*) path;
1f783c9 @pieter Reload refs on refresh
pieter authored
58 - (void) setup;
42e8196 @pieter Pass on arguments from the command line to the revwalk mechanism
pieter authored
59
a2217fe @pieter Reload commits after doing a commit
pieter authored
60 @property (assign) BOOL hasChanged;
86606ef @pieter Add a --commit option to the CLI client
pieter authored
61 @property (readonly) NSWindowController *windowController;
afb3d45 @pieter Add a way to retrieve values from .git/config files
pieter authored
62 @property (readonly) PBGitConfig *config;
7b2efe1 @pieter Change current document when called with different arguments
pieter authored
63 @property (retain) PBGitRevList* revisionList;
dea6a77 @pieter Add branch control to the PBGitRepository
pieter authored
64 @property (assign) NSMutableArray* branches;
a62e14f @pieter HistoryView: Remove the BranchController
pieter authored
65 @property (assign) PBGitRevSpecifier *currentBranch;
ddc9ae7 @pieter PBGitCommit: Don't store refs
pieter authored
66 @property (retain) NSMutableDictionary* refs;
0fda285 @pieter Use a separate Git class
pieter authored
67 @end
Something went wrong with that request. Please try again.