mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
9bfccb5ea5
This adds the "hasRef" boolean member in PBGitCellInfo which is set to true if the specific commit has symbolic refs. This is the first part in supporting labels just like gitk has. For now, commits with refs are just displayed with a red circle. Things that need to be done to support all refs: * Make the NSDictionary in PBGitRepository contain arrays of refs, not a single string * Make PBGitGrapher store all refs of a commit in the PBGitCellInfo * Figure out a nice way to display the labels in PBGitRevisionCell
25 lines
448 B
Objective-C
25 lines
448 B
Objective-C
//
|
|
// PBGraphCellInfo.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 27-08-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
@interface PBGraphCellInfo : NSObject
|
|
{
|
|
int position;
|
|
NSArray* lines;
|
|
int numColumns;
|
|
BOOL hasRef;
|
|
}
|
|
@property(readonly) NSArray* lines;
|
|
@property(assign) int position, numColumns;
|
|
@property(assign) BOOL hasRef;
|
|
|
|
- (id)initWithPosition: (int) p andLines: (NSArray*) l;
|
|
|
|
@end |