mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Merge pull request #54 from RomainMuller/fix
GitX 0.8.2 does not like first commits
This commit is contained in:
@@ -242,6 +242,8 @@
|
||||
|
||||
+ (NSString *) escapeHTML:(NSString *)txt
|
||||
{
|
||||
if (txt == nil)
|
||||
return txt;
|
||||
NSMutableString *newTxt = [NSMutableString stringWithString:txt];
|
||||
[newTxt replaceOccurrencesOfString:@"&" withString:@"&" options:NSLiteralSearch range:NSMakeRange(0, [newTxt length])];
|
||||
[newTxt replaceOccurrencesOfString:@"<" withString:@"<" options:NSLiteralSearch range:NSMakeRange(0, [newTxt length])];
|
||||
|
||||
@@ -107,11 +107,11 @@
|
||||
NSMutableDictionary *stats=[self parseStats:details];
|
||||
|
||||
// File list
|
||||
NSString *dt=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"diff-tree", @"-r", @"-C90%", @"-M90%", [currentSha string], nil]];
|
||||
NSString *dt=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"diff-tree", @"--root", @"-r", @"-C90%", @"-M90%", [currentSha string], nil]];
|
||||
NSString *fileList=[GLFileView parseDiffTree:dt withStats:stats];
|
||||
|
||||
// Diffs list
|
||||
NSString *d=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"diff-tree", @"--cc", @"-C90%", @"-M90%", [currentSha string], nil]];
|
||||
NSString *d=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"diff-tree", @"--root", @"--cc", @"-C90%", @"-M90%", [currentSha string], nil]];
|
||||
NSString *diffs=[GLFileView parseDiff:d];
|
||||
|
||||
NSString *html=[NSString stringWithFormat:@"%@%@<div id='diffs'>%@</div>",header,fileList,diffs];
|
||||
|
||||
Reference in New Issue
Block a user