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
{
15 PBGitRepository
* repository
;
16 __weak PBGitTree
* parent
;
20 NSString
* localFileName
;
24 + (PBGitTree
*) rootForCommit
: (id
) commit
;
25 + (PBGitTree
*) treeForTree
: (PBGitTree
*) tree andPath
: (NSString
*) path
;
26 - (void) saveToFolder
: (NSString
*) directory
;
28 - (NSString
*) tmpFileNameForContents
;
30 @
property(copy
) NSString
* sha
;
31 @
property(copy
) NSString
* path
;
32 @
property(assign
) BOOL leaf
;
33 @
property(retain
) PBGitRepository
* repository
;
34 @
property(assign
) __weak PBGitTree
* parent
;
36 @
property(readonly
) NSArray
* children
;
37 @
property(readonly
) NSString
* fullPath
;
38 @
property(readonly
) NSString
* contents
;