Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (32 sloc) 0.834 kb
252796e @pieter CommitView: Show basic files
pieter authored
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 //
8
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
11
12 typedef enum {
13 NEW,
14 MODIFIED,
33e21e2 @coresystems-krt Added new icons for file status. When untracked file is
coresystems-krt authored
15 DELETED,
16 ADDED
252796e @pieter CommitView: Show basic files
pieter authored
17 } PBChangedFileStatus;
44009b6 @pieter CommitView: use only one array for all files
pieter authored
18
252796e @pieter CommitView: Show basic files
pieter authored
19 @interface PBChangedFile : NSObject {
20 NSString *path;
0d8ba8c @pieter Rename 'CachedChanges" to "StagedChanges" for greater consistency
pieter authored
21 BOOL hasStagedChanges;
5010511 @pieter CommitView: Always use a single PBChangedFile object
pieter authored
22 BOOL hasUnstagedChanges;
0975426 @pieter CommitView: move index functions to separate controller
pieter authored
23
24 // Index and HEAD stuff, to be used to revert changes
25 NSString *commitBlobSHA;
26 NSString *commitBlobMode;
27
252796e @pieter CommitView: Show basic files
pieter authored
28 PBChangedFileStatus status;
29 }
30
31
0975426 @pieter CommitView: move index functions to separate controller
pieter authored
32 @property (copy) NSString *path, *commitBlobSHA, *commitBlobMode;
252796e @pieter CommitView: Show basic files
pieter authored
33 @property (assign) PBChangedFileStatus status;
0d8ba8c @pieter Rename 'CachedChanges" to "StagedChanges" for greater consistency
pieter authored
34 @property (assign) BOOL hasStagedChanges, hasUnstagedChanges;
e659e63 @pieter CommitView: Add option to amend commits
pieter authored
35
0975426 @pieter CommitView: move index functions to separate controller
pieter authored
36 - (NSImage *)icon;
37 - (NSString *)indexInfo;
252796e @pieter CommitView: Show basic files
pieter authored
38
33e21e2 @coresystems-krt Added new icons for file status. When untracked file is
coresystems-krt authored
39 + (NSImage *) iconForStatus:(PBChangedFileStatus) aStatus;
0975426 @pieter CommitView: move index functions to separate controller
pieter authored
40 - (id) initWithPath:(NSString *)p;
252796e @pieter CommitView: Show basic files
pieter authored
41 @end
Something went wrong with that request. Please try again.