forked from laullon/gitx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PBChangedFile.h
41 lines (32 loc) · 834 Bytes
/
PBChangedFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// PBChangedFile.h
// GitX
//
// Created by Pieter de Bie on 22-09-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGitRepository.h"
typedef enum {
NEW,
MODIFIED,
DELETED,
ADDED
} PBChangedFileStatus;
@interface PBChangedFile : NSObject {
NSString *path;
BOOL hasStagedChanges;
BOOL hasUnstagedChanges;
// Index and HEAD stuff, to be used to revert changes
NSString *commitBlobSHA;
NSString *commitBlobMode;
PBChangedFileStatus status;
}
@property (copy) NSString *path, *commitBlobSHA, *commitBlobMode;
@property (assign) PBChangedFileStatus status;
@property (assign) BOOL hasStagedChanges, hasUnstagedChanges;
- (NSImage *)icon;
- (NSString *)indexInfo;
+ (NSImage *) iconForStatus:(PBChangedFileStatus) aStatus;
- (id) initWithPath:(NSString *)p;
@end