mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
37 lines
525 B
Objective-C
37 lines
525 B
Objective-C
//
|
|
// PBGitLane.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 27-08-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
class PBGitLane {
|
|
static int s_colorIndex;
|
|
|
|
NSString *d_sha;
|
|
int d_index;
|
|
|
|
public:
|
|
|
|
PBGitLane(NSString *sha)
|
|
{
|
|
d_index = s_colorIndex++;
|
|
d_sha = sha;
|
|
}
|
|
|
|
PBGitLane()
|
|
{
|
|
d_index = s_colorIndex++;
|
|
}
|
|
|
|
bool isCommit(NSString *sha) const
|
|
{
|
|
return [d_sha isEqual:sha];
|
|
}
|
|
|
|
void setSha(NSString *sha);
|
|
int index() const;
|
|
static void resetColors();
|
|
}; |