mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
a3d0d66d31
This simplifies the HTML code somewhat
39 lines
802 B
Objective-C
39 lines
802 B
Objective-C
//
|
|
// PBGitCommit.m
|
|
// GitTest
|
|
//
|
|
// Created by Pieter de Bie on 13-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "PBGitCommit.h"
|
|
|
|
|
|
@implementation PBGitCommit
|
|
|
|
@synthesize sha, repository, subject, author;
|
|
|
|
- initWithRepository:(PBGitRepository*) repo andSha:(NSString*) newSha
|
|
{
|
|
self.repository = repo;
|
|
self.sha = newSha;
|
|
return self;
|
|
}
|
|
|
|
- (NSString*) details
|
|
{
|
|
NSFileHandle* handle = [self.repository handleForCommand:[@"show --pretty=raw " stringByAppendingString:self.sha]];
|
|
NSString* details = [[NSString alloc] initWithData:[handle readDataToEndOfFile] encoding: NSASCIIStringEncoding];
|
|
return details;
|
|
}
|
|
|
|
+ (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector
|
|
{
|
|
return NO;
|
|
}
|
|
|
|
+ (BOOL)isKeyExcludedFromWebScript:(const char *)name {
|
|
return NO;
|
|
}
|
|
@end
|