5 // Created by Pieter de Bie on 13-06-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import "PBGitRepository.h"
14 @interface PBGitCommit
: NSObject
{
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
;