Files
gitx/PBGitCommit.h
T
Pieter de Bie 39797876fe Optimize rev-list parsing
This uses the C fgets() over the weird readLine implementation I found.
It speeds up the rev-parsing significantly: we went from ~4.5 seconds
on the git.git repo to ~0.95 seconds. And that's with the secret new date
parsing!
2008-06-17 15:04:49 +02:00

35 lines
798 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;
NSDate* date;
PBGitRepository* repository;
}
- initWithRepository:(PBGitRepository*) repo andSha:(NSString*) sha;
@property (copy) NSString* sha;
@property (copy) NSString* subject;
@property (copy) NSString* author;
@property (copy) NSDate* date;
@property (readonly) NSString* dateString;
@property (readonly) NSString* details;
@property (readonly) PBGitTree* tree;
@property (readonly) NSArray* treeContents;
@property (retain) PBGitRepository* repository;
@end