forked from laullon/gitx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPBWebCommitController.h
46 lines (36 loc) · 1.24 KB
/
PBWebCommitController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// PBWebCommitController.h
//
// Created by David Catmull on 10-06-11.
//
#import <Cocoa/Cocoa.h>
#import "PBWebController.h"
#import "PBRefContextDelegate.h"
@class NSString;
@class PBGitCommit;
// Displays the diff from a commit in the repository.
@interface PBWebCommitController : PBWebController {
IBOutlet id<PBRefContextDelegate> contextMenuDelegate;
NSString* currentSha;
NSString* diff;
BOOL showLongDiffs;
}
- (void) changeContentTo: (PBGitCommit *) content;
- (void) sendKey: (NSString*) key;
- (void) openFileMerge:(NSString*)file sha:(NSString *)sha sha2:(NSString *)sha2;
- (void) showLongDiff;
+ (NSArray *)parseHeader:(NSString *)text;
+ (NSMutableDictionary *)parseStats:(NSString *)txt;
- (void) didLoad;
// Called when a commit or parent link is clicked.
- (void)selectCommit:(NSString *)sha;
// HTML listing refs (branch name, etc) for the displayed commit.
- (NSString*) refsForCurrentCommit;
// Look up a PBGitRef based on its SHA.
- (PBGitRef*) refFromString:(NSString*)refString;
// Choose which parents should be used for the diff
- (NSArray*) chooseDiffParents:(NSArray*)parents;
// Context menu items to be displayed for a file.
- (NSArray*) menuItemsForPath:(NSString*)path;
@property (readonly) NSString* diff;
@end