Skip to content

Commit cad9281

Browse files
committed
merger brotherbard:experimetal
2 parents a78a2c2 + 59c4983 commit cad9281

23 files changed

+1489
-63
lines changed

GitX.xcodeproj/project.pbxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24+
02B41A5E123E307200DFC531 /* PBCommitHookFailedSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 02B41A5D123E307200DFC531 /* PBCommitHookFailedSheet.m */; };
25+
02B41A60123E307F00DFC531 /* PBCommitHookFailedSheet.xib in Resources */ = {isa = PBXBuildFile; fileRef = 02B41A5F123E307F00DFC531 /* PBCommitHookFailedSheet.xib */; };
2426
056438B70ED0C40B00985397 /* DetailViewTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = 056438B60ED0C40B00985397 /* DetailViewTemplate.png */; };
2527
310DC1D81240599E0017A0F7 /* GLFileView.m in Sources */ = {isa = PBXBuildFile; fileRef = 310DC1D71240599E0017A0F7 /* GLFileView.m */; };
2628
31460CD2124185BA00B90AED /* MGRecessedPopUpButtonCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 31460CA7124185BA00B90AED /* MGRecessedPopUpButtonCell.m */; };
@@ -243,6 +245,9 @@
243245
/* End PBXCopyFilesBuildPhase section */
244246

245247
/* Begin PBXFileReference section */
248+
02B41A5C123E307200DFC531 /* PBCommitHookFailedSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBCommitHookFailedSheet.h; sourceTree = "<group>"; };
249+
02B41A5D123E307200DFC531 /* PBCommitHookFailedSheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBCommitHookFailedSheet.m; sourceTree = "<group>"; };
250+
02B41A5F123E307F00DFC531 /* PBCommitHookFailedSheet.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PBCommitHookFailedSheet.xib; sourceTree = "<group>"; };
246251
056438B60ED0C40B00985397 /* DetailViewTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DetailViewTemplate.png; path = Images/DetailViewTemplate.png; sourceTree = "<group>"; };
247252
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
248253
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
@@ -637,6 +642,7 @@
637642
29B97317FDCFA39411CA2CEA /* Resources */ = {
638643
isa = PBXGroup;
639644
children = (
645+
02B41A5F123E307F00DFC531 /* PBCommitHookFailedSheet.xib */,
640646
F5F7D0641062E7940072C81C /* UpdateKey.pem */,
641647
F50A41130EBB872D00208746 /* Widgets */,
642648
47DBDB920E94F47200671A1E /* Preference Icons */,
@@ -733,6 +739,8 @@
733739
D82F435F111B9C6D00A25A39 /* Sheets */ = {
734740
isa = PBXGroup;
735741
children = (
742+
02B41A5C123E307200DFC531 /* PBCommitHookFailedSheet.h */,
743+
02B41A5D123E307200DFC531 /* PBCommitHookFailedSheet.m */,
736744
D854948410D5C01B0083B917 /* PBCreateBranchSheet.h */,
737745
D854948510D5C01B0083B917 /* PBCreateBranchSheet.m */,
738746
D8E3B34B10DCA958001096A3 /* PBCreateTagSheet.h */,
@@ -1219,6 +1227,7 @@
12191227
31460CD4124185BA00B90AED /* ReadMe.txt in Resources */,
12201228
31460CD5124185BA00B90AED /* Source Code License.rtf in Resources */,
12211229
31460CD6124185BA00B90AED /* TODO in Resources */,
1230+
02B41A60123E307F00DFC531 /* PBCommitHookFailedSheet.xib in Resources */,
12221231
);
12231232
runOnlyForDeploymentPostprocessing = 0;
12241233
};
@@ -1371,6 +1380,7 @@
13711380
310DC1D81240599E0017A0F7 /* GLFileView.m in Sources */,
13721381
31460CD2124185BA00B90AED /* MGRecessedPopUpButtonCell.m in Sources */,
13731382
31460CD3124185BA00B90AED /* MGScopeBar.m in Sources */,
1383+
02B41A5E123E307200DFC531 /* PBCommitHookFailedSheet.m in Sources */,
13741384
);
13751385
runOnlyForDeploymentPostprocessing = 0;
13761386
};

PBCommitHookFailedSheet.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// PBCommitHookFailedSheet.h
3+
// GitX
4+
//
5+
// Created by Sebastian Staudt on 9/12/10.
6+
// Copyright 2010 Sebastian Staudt. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
#import "PBGitCommitController.h"
12+
#import "PBGitXMessageSheet.h"
13+
14+
15+
@interface PBCommitHookFailedSheet : PBGitXMessageSheet
16+
{
17+
PBGitCommitController *commitController;
18+
}
19+
20+
+ (void)beginMessageSheetForWindow:(NSWindow *)parentWindow withMessageText:(NSString *)message infoText:(NSString *)info commitController:(PBGitCommitController *)controller;
21+
22+
- (id)initWithWindowNibName:(NSString *)windowNibName andController:(PBGitCommitController *)controller;
23+
- (IBAction)forceCommit:(id)sender;
24+
25+
@end

PBCommitHookFailedSheet.m

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//
2+
// PBCommitHookFailedSheet.m
3+
// GitX
4+
//
5+
// Created by Sebastian Staudt on 9/12/10.
6+
// Copyright 2010 Sebastian Staudt. All rights reserved.
7+
//
8+
9+
#import "PBCommitHookFailedSheet.h"
10+
#import "PBGitWindowController.h"
11+
12+
13+
@implementation PBCommitHookFailedSheet
14+
15+
#pragma mark -
16+
#pragma mark PBCommitHookFailedSheet
17+
18+
+ (void)beginMessageSheetForWindow:(NSWindow *)parentWindow withMessageText:(NSString *)message infoText:(NSString *)info commitController:(PBGitCommitController *)controller
19+
{
20+
PBCommitHookFailedSheet *sheet = [[self alloc] initWithWindowNibName:@"PBCommitHookFailedSheet" andController:controller];
21+
[sheet beginMessageSheetForWindow:parentWindow withMessageText:message infoText:info];
22+
}
23+
24+
- (id)initWithWindowNibName:(NSString *)windowNibName andController:(PBGitCommitController *)controller;
25+
{
26+
self = [self initWithWindowNibName:windowNibName];
27+
commitController = controller;
28+
29+
return self;
30+
}
31+
32+
- (IBAction)forceCommit:(id)sender
33+
{
34+
[self closeMessageSheet:self];
35+
[commitController forceCommit:sender];
36+
}
37+
38+
@end

0 commit comments

Comments
 (0)