5 // Created by Pieter de Bie on 27-08-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
8 #import <Cocoa/Cocoa.h>
12 static int s_colorIndex
;
19 PBGitLane(git_oid
*sha
)
21 d_index
= s_colorIndex
++;
25 PBGitLane(NSString
*sha
)
27 git_oid_mkstr(&d_sha
, [sha UTF8String
]);
28 d_index
= s_colorIndex
++;
33 d_index
= s_colorIndex
++;
36 bool isCommit(git_oid
*sha
) const
38 return !git_oid_cmp(&d_sha
, sha
);
41 void setSha(git_oid sha
);
43 git_oid
const *sha() const
50 static void resetColors();