mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
40 lines
841 B
Objective-C
40 lines
841 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
|
|
} PBChangedFileStatus;
|
|
|
|
@interface PBChangedFile : NSObject {
|
|
NSString *path;
|
|
BOOL hasCachedChanges;
|
|
BOOL hasUnstagedChanges;
|
|
__weak PBGitRepository *repository;
|
|
PBChangedFileStatus status;
|
|
}
|
|
|
|
|
|
@property (readonly) NSString *path;
|
|
@property (assign) PBChangedFileStatus status;
|
|
@property (assign) BOOL hasCachedChanges;
|
|
@property (assign) BOOL hasUnstagedChanges;
|
|
- (NSImage *)icon;
|
|
- (NSString *)cachedChangesAmend:(BOOL)amend;
|
|
- (NSString *)unstagedChanges;
|
|
|
|
- (void) stageChanges;
|
|
- (void) unstageChangesAmend:(BOOL)amend;
|
|
|
|
- (id) initWithPath:(NSString *)p andRepository:(PBGitRepository *)r;
|
|
@end
|