forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommit.m
More file actions
executable file
·33 lines (27 loc) · 759 Bytes
/
Commit.m
File metadata and controls
executable file
·33 lines (27 loc) · 759 Bytes
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
//
// Commit.m
// Coding_iOS
//
// Created by 王 原闯 on 14-8-16.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import "Commit.h"
@implementation Commit
- (NSString *)contentStr{
NSString *contentStr;
if (_sha && _sha.length > 0) {
contentStr = [NSString stringWithFormat:@"%@ : [%@] %@", _committer.name, [_sha substringToIndex:10], _short_message];
}
return contentStr;
}
- (void)setShort_message:(NSString *)short_message{
if (short_message.length <= 0) {
_short_message = short_message;
return;
}
HtmlMedia *htmlHedia = [HtmlMedia htmlMediaWithString:short_message showType:MediaShowTypeCode];
_short_message = htmlHedia.contentDisplay;
}
@end
@implementation Committer
@end