mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
openFileMerge on "diff with..."
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
#import "PBWebDiffController.h"
|
||||
#import "GLFileView.h"
|
||||
|
||||
|
||||
@implementation PBWebDiffController
|
||||
@@ -47,7 +46,15 @@
|
||||
if ([diff length] == 0)
|
||||
[script callWebScriptMethod:@"setMessage" withArguments:[NSArray arrayWithObject:@"There are no differences"]];
|
||||
else
|
||||
[script callWebScriptMethod:@"showFile" withArguments:[NSArray arrayWithObject:[GLFileView parseDiff:diff]]];
|
||||
[script callWebScriptMethod:@"showFile" withArguments:[NSArray arrayWithObject:diff]];
|
||||
}
|
||||
|
||||
// TODO: need to be refactoring
|
||||
- (void) openFileMerge:(NSString*)file sha:(NSString *)sha sha2:(NSString *)sha2;
|
||||
{
|
||||
NSArray *args=[NSArray arrayWithObjects:@"difftool",@"--no-prompt",@"--tool=opendiff",sha,sha2,file,nil];
|
||||
[repository handleInWorkDirForArguments:args];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user