mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
6e978dcea4
This makes the PBGitRevisionCell a bit nicer by retrieving all values from the PBGitCommit object itself, and using another NSTextFieldCell to draw the text. This mean that PBGitGrapher now stores its information in the PBGitCommit's, rather than in a custom grapher array. Also, because we don't need the grapher to display refs anymore, the ref labels are also displayed when using path limiting (for example, 'gitx -- Makefile').
32 lines
624 B
Objective-C
32 lines
624 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 {
|
|
PBGraphCellInfo* previous;
|
|
NSMutableArray* previousLanes;
|
|
NSDictionary* refs;
|
|
PBGitRepository* repository;
|
|
}
|
|
|
|
- (id) initWithRepository: (PBGitRepository*) repo;
|
|
- (void) decorateCommit: (PBGitCommit *) commit;
|
|
@end
|