Add a link to GitX Homepage in the about dialog
[GitX.git] / PBChangedFile.h
blobf4d53fdc00aafa3460f0a524b7b87aea576a3d24
1 //
2 // PBChangedFile.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 22-09-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
12 typedef enum {
13 NEW,
14 MODIFIED,
15 DELETED
16 } PBChangedFileStatus;
18 @interface PBChangedFile : NSObject {
19 NSString *path;
20 BOOL hasCachedChanges;
21 BOOL hasUnstagedChanges;
22 BOOL shouldBeDeleted;
24 // Index and HEAD stuff, to be used to revert changes
25 NSString *commitBlobSHA;
26 NSString *commitBlobMode;
28 PBChangedFileStatus status;
32 @property (copy) NSString *path, *commitBlobSHA, *commitBlobMode;
33 @property (assign) PBChangedFileStatus status;
34 @property (assign) BOOL hasCachedChanges, hasUnstagedChanges, shouldBeDeleted;
36 - (NSImage *)icon;
37 - (NSString *)indexInfo;
39 - (id) initWithPath:(NSString *)p;
40 @end