mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
81d7e78e7d
This is important for large repositories as the commit will be selected when it is added instead of waiting for all the commits to be loaded. Stop attempts to select the current commit again if it's already selected. No longer need the updatedGraph property on the history list.
53 lines
1.0 KiB
Objective-C
53 lines
1.0 KiB
Objective-C
//
|
|
// PBGitHistoryList.h
|
|
// GitX
|
|
//
|
|
// Created by Nathan Kinsinger on 2/20/10.
|
|
// Copyright 2010 Nathan Kinsinger. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
@class PBGitRepository;
|
|
@class PBGitRevSpecifier;
|
|
@class PBGitRef;
|
|
@class PBGitRevList;
|
|
@class PBGitHistoryGrapher;
|
|
@class PBGitSHA;
|
|
|
|
@interface PBGitHistoryList : NSObject {
|
|
PBGitRepository *repository;
|
|
|
|
PBGitRevList *projectRevList;
|
|
PBGitRevList *currentRevList;
|
|
|
|
PBGitSHA *lastSHA;
|
|
NSSet *lastRefSHAs;
|
|
NSInteger lastBranchFilter;
|
|
PBGitRef *lastRemoteRef;
|
|
BOOL resetCommits;
|
|
BOOL shouldReloadProjectHistory;
|
|
|
|
PBGitHistoryGrapher *grapher;
|
|
NSOperationQueue *graphQueue;
|
|
|
|
NSMutableArray *commits;
|
|
BOOL isUpdating;
|
|
}
|
|
|
|
- (id) initWithRepository:(PBGitRepository *)repo;
|
|
- (void) forceUpdate;
|
|
- (void) updateHistory;
|
|
- (void)cleanup;
|
|
|
|
- (void) updateCommitsFromGrapher:(NSDictionary *)commitData;
|
|
|
|
|
|
@property (retain) PBGitRevList *projectRevList;
|
|
@property (retain) NSMutableArray *commits;
|
|
@property (readonly) NSArray *projectCommits;
|
|
@property (assign) BOOL isUpdating;
|
|
|
|
@end
|