File tree 2 files changed +5
-29
lines changed
2 files changed +5
-29
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ class PBGitLane {
34
34
PBGitLane ()
35
35
{
36
36
d_index = s_colorIndex++;
37
- // d_sha = NULL;
38
37
}
39
38
40
- bool isCommit (git_oid *sha) const ;
41
- bool isCommit (NSString *sha) const ;
39
+ bool PBGitLane::isCommit (git_oid *sha) const
40
+ {
41
+ return !git_oid_cmp (&d_sha, sha);
42
+ }
42
43
43
44
void setSha (git_oid sha);
44
- void setSha (NSString *sha);
45
45
46
46
git_oid const *sha () const
47
47
{
@@ -51,4 +51,4 @@ class PBGitLane {
51
51
int index () const ;
52
52
53
53
static void resetColors ();
54
- };
54
+ };
Original file line number Diff line number Diff line change 24
24
25
25
int PBGitLane::s_colorIndex = 0 ;
26
26
27
- static git_oid str_to_oid (NSString *str)
28
- {
29
- git_oid oid;
30
- git_oid_mkstr (&oid, [str UTF8String ]);
31
- return oid;
32
- }
33
-
34
- bool PBGitLane::isCommit (git_oid *sha) const
35
- {
36
- return !git_oid_cmp (&d_sha, sha);
37
- }
38
-
39
- bool PBGitLane::isCommit (NSString *sha) const
40
- {
41
- git_oid a = str_to_oid (sha);
42
- return isCommit (&a);
43
- }
44
-
45
27
int PBGitLane::index () const
46
28
{
47
29
return d_index;
@@ -52,12 +34,6 @@ static git_oid str_to_oid(NSString *str)
52
34
d_sha = sha;
53
35
}
54
36
55
- void PBGitLane::setSha (NSString *sha)
56
- {
57
- return setSha (str_to_oid (sha));
58
- }
59
-
60
-
61
37
void PBGitLane::resetColors ()
62
38
{
63
39
s_colorIndex = 0 ;
You can’t perform that action at this time.
0 commit comments