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').
42 lines
966 B
Objective-C
42 lines
966 B
Objective-C
//
|
|
// PBGitCommit.h
|
|
// GitTest
|
|
//
|
|
// Created by Pieter de Bie on 13-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitRepository.h"
|
|
#import "PBGitTree.h"
|
|
|
|
@interface PBGitCommit : NSObject {
|
|
NSString* sha;
|
|
NSString* subject;
|
|
NSString* author;
|
|
NSString* details;
|
|
NSArray* parents;
|
|
NSArray* refs;
|
|
NSDate* date;
|
|
char sign;
|
|
id lineInfo;
|
|
PBGitRepository* repository;
|
|
}
|
|
|
|
- initWithRepository:(PBGitRepository*) repo andSha:(NSString*) sha;
|
|
|
|
@property (copy) NSString* sha;
|
|
@property (copy) NSString* subject;
|
|
@property (copy) NSString* author;
|
|
@property (retain) NSArray* parents, *refs;
|
|
@property (copy) NSDate* date;
|
|
@property (readonly) NSString* dateString;
|
|
@property (assign) char sign;
|
|
|
|
@property (readonly) NSString* details;
|
|
@property (readonly) PBGitTree* tree;
|
|
@property (readonly) NSArray* treeContents;
|
|
@property (retain) PBGitRepository* repository;
|
|
@property (retain) id lineInfo;
|
|
@end
|