mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
@@ -55,6 +55,7 @@
|
||||
PBGitTree *gitTree;
|
||||
PBGitCommit *webCommit;
|
||||
PBGitCommit *selectedCommit;
|
||||
PBGitCommit *selectedCommitBeforeRefresh;
|
||||
}
|
||||
|
||||
@property (readonly) NSTreeController* treeController;
|
||||
|
||||
@@ -250,7 +250,9 @@
|
||||
}else if([(NSString *)context isEqualToString:@"updateCommitCount"] || [(NSString *)context isEqualToString:@"revisionListUpdating"]) {
|
||||
[self updateStatus];
|
||||
|
||||
if ([repository.currentBranch isSimpleRef])
|
||||
if (selectedCommitBeforeRefresh && [repository commitForSHA:[selectedCommitBeforeRefresh sha]])
|
||||
[self selectCommit:[selectedCommitBeforeRefresh sha]];
|
||||
else if ([repository.currentBranch isSimpleRef])
|
||||
[self selectCommit:[repository shaForRef:[repository.currentBranch ref]]];
|
||||
else
|
||||
[self selectCommit:[[self firstCommit] sha]];
|
||||
@@ -405,6 +407,7 @@
|
||||
|
||||
- (IBAction) refresh:(id)sender
|
||||
{
|
||||
selectedCommitBeforeRefresh = selectedCommit;
|
||||
[repository forceUpdateRevisions];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user