-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathObjGitCommit.h
42 lines (37 loc) · 1.23 KB
/
ObjGitCommit.h
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
40
41
42
//
// ObjGitCommit.h
// ObjGit
//
#import <Foundation/Foundation.h>
#import "ObjGitObject.h"
@interface ObjGitCommit : NSObject {
NSString *sha;
NSArray *parentShas;
NSString *treeSha;
NSString *author;
NSString *author_email;
NSDate *authored_date;
NSString *committer;
NSString *committer_email;
NSDate *committed_date;
NSString *message;
ObjGitObject *git_object;
}
@property(copy, readwrite) NSString *sha;
@property(copy, readwrite) NSArray *parentShas;
@property(copy, readwrite) NSString *treeSha;
@property(copy, readwrite) NSString *author;
@property(copy, readwrite) NSString *author_email;
@property(copy, readwrite) NSDate *authored_date;
@property(copy, readwrite) NSString *committer;
@property(copy, readwrite) NSString *committer_email;
@property(retain, readwrite) NSDate *committed_date;
@property(assign, readwrite) NSString *message;
@property(assign, readwrite) ObjGitObject *git_object;
- (id) initFromGitObject:(ObjGitObject *)gitObject;
- (id) initFromRaw:(NSData *)rawData withSha:(NSString *)shaValue;
- (void) parseContent;
- (void) logObject;
- (NSArray *) authorArray;
- (NSArray *) parseAuthorString:(NSString *)authorString withType:(NSString *)typeString;
@end