mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
21d1f3989f
This enables the user to force a commit (i.e. --no-verify) when either pre-commit or commit-msg hook fails.
34 lines
915 B
Objective-C
34 lines
915 B
Objective-C
//
|
|
// PBGitXMessageSheet.h
|
|
// GitX
|
|
//
|
|
// Created by BrotherBard on 7/4/10.
|
|
// Copyright 2010 BrotherBard. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
@interface PBGitXMessageSheet : NSWindowController
|
|
{
|
|
NSImageView *iconView;
|
|
NSTextField *messageField;
|
|
NSTextView *infoView;
|
|
NSScrollView *scrollView;
|
|
}
|
|
|
|
+ (void)beginMessageSheetForWindow:(NSWindow *)parentWindow withMessageText:(NSString *)message infoText:(NSString *)info;
|
|
+ (void)beginMessageSheetForWindow:(NSWindow *)parentWindow withError:(NSError *)error;
|
|
|
|
|
|
- (void)beginMessageSheetForWindow:(NSWindow *)parentWindow withMessageText:(NSString *)message infoText:(NSString *)info;
|
|
- (IBAction)closeMessageSheet:(id)sender;
|
|
|
|
|
|
@property (assign) IBOutlet NSImageView *iconView;
|
|
@property (assign) IBOutlet NSTextField *messageField;
|
|
@property (assign) IBOutlet NSTextView *infoView;
|
|
@property (assign) IBOutlet NSScrollView *scrollView;
|
|
|
|
@end
|