Common file viewer for historic and commit views

This commit is contained in:
German Laullon
2010-06-14 10:29:18 -07:00
parent 6e20f39515
commit 26d9adca8e
15 changed files with 1421 additions and 666 deletions
+7 -2
View File
@@ -12,6 +12,8 @@
@implementation PBWebChangesController
@synthesize fileViewerController;
- (void) awakeFromNib
{
selectedFile = nil;
@@ -72,8 +74,11 @@
- (void) refresh
{
if (!finishedLoading)
[fileViewerController showFile:[selectedFile path] sha:nil];
/*if (!finishedLoading)
return;
[fileViewerController showFile:selectedFile sha:@""];
id script = [view windowScriptObject];
@@ -85,7 +90,7 @@
[script callWebScriptMethod:@"showFileBlame"
withArguments:[NSArray arrayWithObjects:selectedFile ?: (id)[NSNull null],
[NSNumber numberWithBool:selectedFileIsCached], nil]];
}
}*/
}
- (void)stageHunk:(NSString *)hunk reverse:(BOOL)reverse