5 // Created by Pieter de Bie on 15-06-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
12 @interface PBGitTree
: NSObject
{
17 PBGitRepository
* repository
;
18 __weak PBGitTree
* parent
;
22 NSString
* localFileName
;
26 + (PBGitTree
*) rootForCommit
: (id
) commit
;
27 + (PBGitTree
*) treeForTree
: (PBGitTree
*) tree andPath
: (NSString
*) path
;
28 - (void) saveToFolder
: (NSString
*) directory
;
30 - (NSString
*) tmpFileNameForContents
;
31 - (long long)fileSize
;
33 @
property(copy
) NSString
* sha
;
34 @
property(copy
) NSString
* path
;
35 @
property(assign
) BOOL leaf
;
36 @
property(retain
) PBGitRepository
* repository
;
37 @
property(assign
) __weak PBGitTree
* parent
;
39 @
property(readonly
) NSArray
* children
;
40 @
property(readonly
) NSString
* fullPath
;
41 @
property(readonly
) NSString
* contents
;