mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
93124387c4
This adds a small method signOff which simply appends a SOB-line to the current commit-message, using user.name and user.email. Signed-off-by: Johannes Gilger <heipei@hackvalue.de> Signed-off-by: Pieter de Bie <frimmirf+gitx@gmail.com>
54 lines
1.3 KiB
Objective-C
54 lines
1.3 KiB
Objective-C
//
|
|
// PBGitCommitController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 19-09-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBViewController.h"
|
|
|
|
@class PBGitIndexController;
|
|
@class PBIconAndTextCell;
|
|
@class PBWebChangesController;
|
|
|
|
@interface PBGitCommitController : PBViewController {
|
|
NSMutableArray *files;
|
|
|
|
IBOutlet NSTextView *commitMessageView;
|
|
IBOutlet NSArrayController *unstagedFilesController;
|
|
IBOutlet NSArrayController *cachedFilesController;
|
|
|
|
IBOutlet PBGitIndexController *indexController;
|
|
IBOutlet PBWebChangesController *webController;
|
|
|
|
NSString *status;
|
|
|
|
// We use busy as a count of active processes.
|
|
// You can increase it when your process start
|
|
// And decrease it after you have finished.
|
|
int busy;
|
|
BOOL amend;
|
|
NSDictionary *amendEnvironment;
|
|
|
|
}
|
|
|
|
@property (retain) NSMutableArray *files;
|
|
@property (copy) NSString *status;
|
|
@property (assign) int busy;
|
|
@property (assign) BOOL amend;
|
|
|
|
- (void) readCachedFiles:(NSNotification *)notification;
|
|
- (void) readOtherFiles:(NSNotification *)notification;
|
|
- (void) readUnstagedFiles:(NSNotification *)notification;
|
|
- (void) stageHunk: (NSString *)hunk reverse:(BOOL)reverse;
|
|
- (void)discardHunk:(NSString *)hunk;
|
|
|
|
- (NSString *)parentTree;
|
|
|
|
- (IBAction) refresh:(id) sender;
|
|
- (IBAction) commit:(id) sender;
|
|
- (IBAction)signOff:(id)sender;
|
|
@end
|