mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
33e21e2604
added to index than it has added file icon.
42 lines
834 B
Objective-C
42 lines
834 B
Objective-C
//
|
|
// 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
|