mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
c17215e55e
This is a convenience class to replace using NSStrings to store and compare SHAs. PBGitSHA has a much faster isEqual: function. It is <NSCopying> compliant and implements isEqual: and hash so it can be used as a key in dictionaries.
33 lines
650 B
Objective-C
33 lines
650 B
Objective-C
//
|
|
// PBWebGitController.h
|
|
// GitTest
|
|
//
|
|
// Created by Pieter de Bie on 14-06-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBWebController.h"
|
|
|
|
#import "PBGitCommit.h"
|
|
#import "PBGitHistoryController.h"
|
|
#import "PBRefContextDelegate.h"
|
|
|
|
|
|
@class PBGitSHA;
|
|
|
|
|
|
@interface PBWebHistoryController : PBWebController {
|
|
IBOutlet PBGitHistoryController* historyController;
|
|
IBOutlet id<PBRefContextDelegate> contextMenuDelegate;
|
|
|
|
PBGitSHA* currentSha;
|
|
NSString* diff;
|
|
}
|
|
|
|
- (void) changeContentTo: (PBGitCommit *) content;
|
|
- (void) sendKey: (NSString*) key;
|
|
|
|
@property (readonly) NSString* diff;
|
|
@end
|