only commit files on file view

This commit is contained in:
German Laullon
2010-06-18 18:48:40 -07:00
committed by glaullon
parent 74ab9107fc
commit ed8ad4b0de
+3 -2
View File
@@ -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;