mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add pullButton: IBAction.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
- (IBAction)rebaseButton:(id)sender;
|
||||
- (IBAction)pushButton:(id)sender;
|
||||
- (IBAction)pullButton:(id)sender;
|
||||
- (IBAction)fetchButton:(id)sender;
|
||||
|
||||
- (NSArray *) menuItemsForRef:(PBGitRef *)ref commit:(PBGitCommit *)commit;
|
||||
|
||||
@@ -268,6 +268,15 @@
|
||||
// NSLog([NSString stringWithFormat:@"Push hit for %@!", refName]);
|
||||
}
|
||||
|
||||
-(void)pullButton:(id)sender
|
||||
{
|
||||
[sender setEnabled:NO];
|
||||
NSString *refName =[historyController.repository.currentBranch simpleRef];
|
||||
[self pullImpl:refName];
|
||||
[sender setEnabled:YES];
|
||||
// NSLog([NSString stringWithFormat:@"Pull hit for %@!", refName]);
|
||||
}
|
||||
|
||||
-(void)fetchButton:(id)sender
|
||||
{
|
||||
[sender setEnabled:NO];
|
||||
|
||||
Reference in New Issue
Block a user