Merge branch 'pu/pb/index_quick_fix' into stable
[GitX.git] / PBGitCommitController.h
blob09767385ea2b3f279c60ae227bbf40f3851c2d36
1 //
2 // PBGitCommitController.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 19-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBViewController.h"
12 @class PBGitIndexController;
13 @class PBIconAndTextCell;
14 @class PBWebChangesController;
16 @interface PBGitCommitController : PBViewController {
17 NSMutableArray *files;
19 IBOutlet NSTextView *commitMessageView;
20 IBOutlet NSArrayController *unstagedFilesController;
21 IBOutlet NSArrayController *cachedFilesController;
23 IBOutlet PBGitIndexController *indexController;
24 IBOutlet PBWebChangesController *webController;
26 NSString *status;
28 // We use busy as a count of active processes.
29 // You can increase it when your process start
30 // And decrease it after you have finished.
31 int busy;
32 BOOL amend;
33 NSDictionary *amendEnvironment;
37 @property (retain) NSMutableArray *files;
38 @property (copy) NSString *status;
39 @property (assign) int busy;
40 @property (assign) BOOL amend;
42 - (void) readCachedFiles:(NSNotification *)notification;
43 - (void) readOtherFiles:(NSNotification *)notification;
44 - (void) readUnstagedFiles:(NSNotification *)notification;
45 - (void) stageHunk: (NSString *)hunk reverse:(BOOL)reverse;
46 - (void)discardHunk:(NSString *)hunk;
48 - (NSString *)parentTree;
50 - (IBAction) refresh:(id) sender;
51 - (IBAction) commit:(id) sender;
52 - (IBAction)signOff:(id)sender;
53 @end