FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Models/Commit.m at master · fusen-github/Coding-iOS · GitHub
fusen-github
/
Coding-iOS
Public
forked from
coding/Coding-iOS
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
Commit.m
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
33 lines (27 loc) · 759 Bytes
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
Commit.m
Copy path
File metadata and controls
executable file
·
33 lines (27 loc) · 759 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
Back
|
FazBrowse Home
|
New Git URL