mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
explicitly disable external diff so we get the results we need even if the user has an external diff configured
This commit is contained in:
committed by
Nathan Kinsinger
parent
62319b8cd9
commit
395877f005
@@ -34,7 +34,7 @@
|
||||
diffCommit = [startCommit.repository headCommit];
|
||||
|
||||
NSString *commitSelector = [NSString stringWithFormat:@"%@..%@", [startCommit realSha], [diffCommit realSha]];
|
||||
NSMutableArray *arguments = [NSMutableArray arrayWithObjects:@"diff", commitSelector, nil];
|
||||
NSMutableArray *arguments = [NSMutableArray arrayWithObjects:@"diff", @"--no-ext-diff", commitSelector, nil];
|
||||
|
||||
if (![PBGitDefaults showWhitespaceDifferences])
|
||||
[arguments insertObject:@"-w" atIndex:1];
|
||||
|
||||
@@ -124,9 +124,9 @@ void handleSTDINDiff()
|
||||
}
|
||||
}
|
||||
|
||||
void handleDiffWithArguments(NSURL *repositoryURL, NSMutableArray *arguments)
|
||||
void handleDiffWithArguments(NSURL *repositoryURL, NSArray *arguments)
|
||||
{
|
||||
[arguments insertObject:@"diff" atIndex:0];
|
||||
arguments = [[NSArray arrayWithObjects:@"diff", @"--no-ext-diff", nil] arrayByAddingObjectsFromArray:arguments];
|
||||
|
||||
int retValue = 1;
|
||||
NSString *diffOutput = [PBEasyPipe outputForCommand:[PBGitBinary path] withArgs:arguments inDir:[repositoryURL path] retValue:&retValue];
|
||||
|
||||
Reference in New Issue
Block a user