mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
GitRevList: replace 'id' with PBGitRepository
This commit is contained in:
+3
-2
@@ -8,14 +8,15 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class PBGitRepository;
|
||||
|
||||
@interface PBGitRevList : NSObject {
|
||||
NSArray* commits;
|
||||
id repository;
|
||||
PBGitRepository *repository;
|
||||
NSString* lastSha;
|
||||
}
|
||||
|
||||
- initWithRepository:(id)repo;
|
||||
- initWithRepository:(PBGitRepository *)repo;
|
||||
- (void) readCommitsForce: (BOOL) force;
|
||||
- (void) reload;
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ using namespace std;
|
||||
@implementation PBGitRevList
|
||||
|
||||
@synthesize commits;
|
||||
- initWithRepository: (id) repo
|
||||
- (id)initWithRepository:(PBGitRepository *)repo
|
||||
{
|
||||
repository = repo;
|
||||
[repository addObserver:self forKeyPath:@"currentBranch" options:0 context:nil];
|
||||
|
||||
Reference in New Issue
Block a user