Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (30 sloc) 0.767 kb
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
//
// 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 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;

- (id) initWithPath:(NSString *)p;
@end
Something went wrong with that request. Please try again.