2 // PBGitCommitController.h
5 // Created by Pieter de Bie on 19-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
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
;
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.
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
;