mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
only commit files on file view
This commit is contained in:
+3
-2
@@ -232,14 +232,15 @@
|
||||
|
||||
NSString* ref = [self refSpec];
|
||||
|
||||
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"show", ref, nil]];
|
||||
[handle readLine];
|
||||
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"show",@"--pretty=format:",@"--name-only", self.sha, nil]];
|
||||
//[handle readLine];
|
||||
[handle readLine];
|
||||
|
||||
NSMutableArray* c = [NSMutableArray array];
|
||||
|
||||
NSString* p = [handle readLine];
|
||||
while ([p length] > 0) {
|
||||
NSLog(@"-->%@",p);
|
||||
if ([p isEqualToString:@"\r"])
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user