Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (40 sloc) 0.708 kb
a294d911 »
2008-08-28 Grapher: Add colors to lane
1 //
2 // PBGitLane.h
3 // GitX
4 //
5 // Created by Pieter de Bie on 27-08-08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
8 #import <Cocoa/Cocoa.h>
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
9 #include "git/oid.h"
a294d911 »
2008-08-28 Grapher: Add colors to lane
10
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
11 class PBGitLane {
12 static int s_colorIndex;
13
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
14 git_oid d_sha;
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
15 int d_index;
a294d911 »
2008-08-28 Grapher: Add colors to lane
16
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
17 public:
a66ae7c1 »
2008-10-03 Grapher: Always reset colors at start of graphing
18
8372aee4 »
2008-11-24 PBGitCommit: Use git_oids for parent shas
19 PBGitLane(git_oid *sha)
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
20 {
21 d_index = s_colorIndex++;
8372aee4 »
2008-11-24 PBGitCommit: Use git_oids for parent shas
22 d_sha = *sha;
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
23 }
24
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
25 PBGitLane(NSString *sha)
26 {
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
27 git_oid_mkstr(&d_sha, [sha UTF8String]);
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
28 d_index = s_colorIndex++;
29 }
30
31 PBGitLane()
32 {
33 d_index = s_colorIndex++;
34 }
35
988b1054 »
2009-04-28 Fix compilation with GCC 4.2
36 bool isCommit(git_oid *sha) const
bda90606 »
2008-11-25 PBGitLane: remove functions with NSString arguments
37 {
38 return !git_oid_cmp(&d_sha, sha);
39 }
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
40
41 void setSha(git_oid sha);
42
43 git_oid const *sha() const
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
44 {
d2eafc2d »
2008-11-21 Include libgit2 as submodule and use it to store sha's
45 return &d_sha;
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
46 }
47
48 int index() const;
a294d911 »
2008-08-28 Grapher: Add colors to lane
49
cef35ac7 »
2008-11-20 GitGrapher: Rewrite looping code to C++
50 static void resetColors();
bda90606 »
2008-11-25 PBGitLane: remove functions with NSString arguments
51 };
Something went wrong with that request. Please try again.