mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Allow zero lines of context
Hunk/line patches don't generally have context Before this, every attempt to stage a hunk or line was met with "patch failed" using git 1.6.6
This commit is contained in:
committed by
Nathan Kinsinger
parent
d4cb11bb8b
commit
c077f234ea
+1
-1
@@ -388,7 +388,7 @@ NSString *PBGitIndexOperationFailed = @"PBGitIndexOperationFailed";
|
||||
|
||||
- (BOOL)applyPatch:(NSString *)hunk stage:(BOOL)stage reverse:(BOOL)reverse;
|
||||
{
|
||||
NSMutableArray *array = [NSMutableArray arrayWithObjects:@"apply", nil];
|
||||
NSMutableArray *array = [NSMutableArray arrayWithObjects:@"apply", @"--unidiff-zero", nil];
|
||||
if (stage)
|
||||
[array addObject:@"--cached"];
|
||||
if (reverse)
|
||||
|
||||
Reference in New Issue
Block a user