Skip to content

Commit ed8ad4b

Browse files
laullonglaullon
authored andcommitted
only commit files on file view
1 parent 74ab910 commit ed8ad4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PBGitTree.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,15 @@ - (NSArray*) children
232232

233233
NSString* ref = [self refSpec];
234234

235-
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"show", ref, nil]];
236-
[handle readLine];
235+
NSFileHandle* handle = [repository handleForArguments:[NSArray arrayWithObjects:@"show",@"--pretty=format:",@"--name-only", self.sha, nil]];
236+
//[handle readLine];
237237
[handle readLine];
238238

239239
NSMutableArray* c = [NSMutableArray array];
240240

241241
NSString* p = [handle readLine];
242242
while ([p length] > 0) {
243+
NSLog(@"-->%@",p);
243244
if ([p isEqualToString:@"\r"])
244245
break;
245246

0 commit comments

Comments
 (0)