mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-17 22:10:59 +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
31 lines
612 B
Objective-C
31 lines
612 B
Objective-C
//
|
|
// PBGitGrapher.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 17-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitCommit.h"
|
|
#import "PBGitGraphLine.h"
|
|
#import "PBGraphCellInfo.h"
|
|
|
|
struct PBGitGraphColumn {
|
|
NSString* commit; // Commit that we're looking for
|
|
int color;
|
|
};
|
|
|
|
|
|
#define PBGitMaxColumns 100
|
|
|
|
@interface PBGitGrapher : NSObject {
|
|
NSMutableArray* cellsInfo;
|
|
PBGitRepository* repository;
|
|
}
|
|
|
|
- (id) initWithRepository: (PBGitRepository*) repo;
|
|
- (void) parseCommits: (NSArray *) array;
|
|
- (PBGraphCellInfo*) cellInfoForRow: (int) row;
|
|
@end
|