Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

automatically refresh commits and history views when bringing the app to the foreground #6

Open
wants to merge 1 commit into from

3 participants

@mikeash

No description provided.

@Uncommon

This fork hasn't been under active development for a while. The last commit to the master branch was almost two years ago.

@koraktor

That said, other forks like laullon's already have that feature.

@mikeash

Is there a good fork to work against that people are contributing to that doesn't have the extra UI addons that most of them seem to be moving towards?

@Uncommon

laullon/gitx is currently the most active fork. He and I are also working on a rewrite at Uncommon/Xit.

@andrewschleifer andrewschleifer referenced this pull request from a commit in andrewschleifer/GitX
@andrewschleifer andrewschleifer Set tab order on history view
From history view it goes to the second pane (diff or tree). You have
to shift-tab to get it back, though.

Ref #6
14e6876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2011
  1. @mikeash
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +2 −0  PBGitCommitController.m
  2. +9 −0 PBGitHistoryController.m
View
2  PBGitCommitController.m
@@ -41,6 +41,8 @@ - (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGit
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(amendCommit:) name:PBGitIndexAmendMessageAvailable object:index];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(indexChanged:) name:PBGitIndexIndexUpdated object:index];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(indexOperationFailed:) name:PBGitIndexOperationFailed object:index];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refresh:) name:NSApplicationDidBecomeActiveNotification object:nil];
return self;
}
View
9 PBGitHistoryController.m
@@ -17,6 +17,15 @@
@implementation PBGitHistoryController
@synthesize selectedTab, webCommit, rawCommit, gitTree, commitController;
+- (id)initWithRepository:(PBGitRepository *)theRepository superController:(PBGitWindowController *)controller
+{
+ if((self = [super initWithRepository:theRepository superController:controller]))
+ {
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refresh:) name:NSApplicationDidBecomeActiveNotification object:nil];
+ }
+ return self;
+}
+
- (void)awakeFromNib
{
self.selectedTab = [[NSUserDefaults standardUserDefaults] integerForKey:@"Repository Window Selected Tab Index"];;
Something went wrong with that request. Please try again.