From ed8ad4b0de3a7a10b3085e4f5c3bb652463f97d9 Mon Sep 17 00:00:00 2001 From: German Laullon Date: Fri, 18 Jun 2010 18:48:40 -0700 Subject: [PATCH] only commit files on file view --- PBGitTree.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PBGitTree.m b/PBGitTree.m index d2453be..3bad70d 100644 --- a/PBGitTree.m +++ b/PBGitTree.m @@ -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;