HistoryView: don't load in commit information in a separate thread anymore
[GitX.git] / PBGitTree.h
blobd48ab6e57ad32da904844ae2420807b833701ec8
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 long long _fileSize;
15 NSString* sha;
16 NSString* path;
17 PBGitRepository* repository;
18 __weak PBGitTree* parent;
19 NSArray* children;
20 BOOL leaf;
22 NSString* localFileName;
23 NSDate* localMtime;
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;
43 @end