GitIndex: add commit notifications
[GitX.git] / PBChangedFile.h
blobbffc110731ea3a6040acbd529d873c48ce24f146
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 hasStagedChanges;
21 BOOL hasUnstagedChanges;
23 // Index and HEAD stuff, to be used to revert changes
24 NSString *commitBlobSHA;
25 NSString *commitBlobMode;
27 PBChangedFileStatus status;
31 @property (copy) NSString *path, *commitBlobSHA, *commitBlobMode;
32 @property (assign) PBChangedFileStatus status;
33 @property (assign) BOOL hasStagedChanges, hasUnstagedChanges;
35 - (NSImage *)icon;
36 - (NSString *)indexInfo;
38 - (id) initWithPath:(NSString *)p;
39 @end