Remove use of deprecated stringWithCString
[GitX.git] / PBGitTree.h
blob9f4334b6b42d2384cc8dad930a2848246c93eb63
1 //
2 // PBGitTree.h
3 // GitTest
4 //
5 // Created by Pieter de Bie on 15-06-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
12 @interface PBGitTree : NSObject {
13 NSString* sha;
14 NSString* path;
15 PBGitRepository* repository;
16 __weak PBGitTree* parent;
17 NSArray* children;
18 BOOL leaf;
20 NSString* localFileName;
21 NSDate* localMtime;
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;
40 @end