GitIndexController: reorder methods a bit, remove unnecessary stuff
[GitX.git] / PBGitCommit.h
blob9a7832e783e2cbcd29a9170825700677d148beee
1 //
2 // PBGitCommit.h
3 // GitTest
4 //
5 // Created by Pieter de Bie on 13-06-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
11 #import "PBGitTree.h"
12 #include "git/oid.h"
14 @interface PBGitCommit : NSObject {
15 git_oid sha;
16 git_oid *parentShas;
17 int nParents;
19 NSString* subject;
20 NSString* author;
21 NSString* details;
22 NSString *_patch;
23 NSArray* parents;
25 int timestamp;
26 char sign;
27 id lineInfo;
28 PBGitRepository* repository;
31 - initWithRepository:(PBGitRepository *)repo andSha:(git_oid)sha;
33 - (void)addRef:(PBGitRef *)ref;
34 - (void)removeRef:(id)ref;
36 - (NSString *)realSha;
38 @property (readonly) git_oid *sha;
39 @property (copy) NSString* subject;
40 @property (copy) NSString* author;
41 @property (readonly) NSArray* parents; // TODO: remove this and its uses
43 @property (assign) git_oid *parentShas;
44 @property (assign) int nParents, timestamp;
46 @property (retain) NSMutableArray* refs;
47 @property (readonly) NSDate *date;
48 @property (readonly) NSString* dateString;
49 @property (readonly) NSString* patch;
50 @property (assign) char sign;
52 @property (readonly) NSString* details;
53 @property (readonly) PBGitTree* tree;
54 @property (readonly) NSArray* treeContents;
55 @property (retain) PBGitRepository* repository;
56 @property (retain) id lineInfo;
57 @end