diff --git a/PBStashContentController.h b/PBStashContentController.h
index 6254632..3ec6061 100644
--- a/PBStashContentController.h
+++ b/PBStashContentController.h
@@ -15,15 +15,9 @@
// Controls the view displaying a stash diff
@interface PBStashContentController : PBViewController {
IBOutlet id webView;
- IBOutlet PBWebStashController *webController;
+ IBOutlet PBWebHistoryController *webController;
}
- (void) showStash:(PBGitStash*)stash;
@end
-
-// TODO: This class may not be needed
-@interface PBWebStashController : PBWebHistoryController {
-}
-
-@end
diff --git a/PBStashContentController.m b/PBStashContentController.m
index 27d2175..8432872 100644
--- a/PBStashContentController.m
+++ b/PBStashContentController.m
@@ -27,30 +27,3 @@
}
@end
-
-@implementation PBWebStashController
-/*
-- (void) changeContentTo:(PBGitStash*)stash
-{
- if (stash == nil || !finishedLoading)
- return;
-
- currentStash = stash;
-
- // TODO: get the stash's SHA and put it in currentSha
-
- NSString *stashRef = [NSString stringWithFormat:@"refs/%@", [stash name]];
- NSMutableArray *taskArguments = [NSMutableArray arrayWithObjects:@"show", @"--numstat", @"--summary", @"--pretty=raw", stashRef, nil];
-
- if (![PBGitDefaults showWhitespaceDifferences])
- [taskArguments insertObject:@"-w" atIndex:1];
-
- NSFileHandle *handle = [repository handleForArguments:taskArguments];
- NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
-
- [nc removeObserver:self name:NSFileHandleReadToEndOfFileCompletionNotification object:nil];
- [nc addObserver:self selector:@selector(commitDetailsLoaded:) name:NSFileHandleReadToEndOfFileCompletionNotification object:handle];
- [handle readToEndOfFileInBackgroundAndNotify];
-}
-*/
-@end
diff --git a/PBStashContentView.xib b/PBStashContentView.xib
index 2015956..5dfb786 100644
--- a/PBStashContentView.xib
+++ b/PBStashContentView.xib
@@ -109,7 +109,7 @@
NSView
+
PBGitRepository
NSDocument
@@ -300,7 +452,7 @@
YES
- PBWebStashController
+ PBWebHistoryController
id
@@ -315,7 +467,7 @@
YES
webController
- PBWebStashController
+ PBWebHistoryController
webView
@@ -323,7 +475,7 @@
-
+
IBProjectSource
PBStashContentController.h
@@ -388,9 +540,44 @@
- PBWebStashController
+ PBWebHistoryController
PBWebController
-
+
+ YES
+
+ YES
+ contextMenuDelegate
+ historyController
+
+
+ YES
+ id
+ PBGitHistoryController
+
+
+
+ YES
+
+ YES
+ contextMenuDelegate
+ historyController
+
+
+ YES
+
+ contextMenuDelegate
+ id
+
+
+ historyController
+ PBGitHistoryController
+
+
+
+
+ IBProjectSource
+ PBWebHistoryController.h
+
WebView