Files
gitx/PBGitLane.m
T
Pieter de Bie a294d911b0 Grapher: Add colors to lane
This introduces a new object, PBGitLane that keeps track of the current lane.
We used to only need a sha for a lane, but now that more information is
needed, an extra object is in order. PBGitLane keeps a lane index number. This
number is later used to pick a color.
2008-08-28 00:25:33 +02:00

28 lines
390 B
Objective-C

//
// PBGitLane.m
// GitX
//
// Created by Pieter de Bie on 27-08-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "PBGitLane.h"
@implementation PBGitLane
@synthesize sha, index;
- (id) initWithCommit: (NSString*) c
{
index = PBGITLANE_CURRENT_INDEX++;
sha = c;
return self;
}
- (BOOL) isCommit: (NSString*) s
{
return [sha isEqualToString:s];
}
@end