mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
69d67820f6
Checkout:
- PBGitRepository: add checkoutRefish:
- PBRefController: renamed checkoutRef: to checkout: and use new method in PBGitRepository
- add to the contextual menus for commits (it was already in the menu for refs)
- add "Checkout branch" checkbox to the Create Branch sheet
- store the state in the defaults
- tell the commitController to rearrangeObjects so that the refs highlight correctly (seems to only be a problem when going from a branch to a detached HEAD at the same commit)
41 lines
1.0 KiB
Objective-C
41 lines
1.0 KiB
Objective-C
//
|
|
// PBLabelController.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 21-10-08.
|
|
// Copyright 2008 Pieter de Bie. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitHistoryController.h"
|
|
#import "PBCommitList.h"
|
|
#import "PBGitRef.h"
|
|
#import "PBGitCommit.h"
|
|
#import "PBRefContextDelegate.h"
|
|
|
|
@class PBRefMenuItem;
|
|
|
|
@interface PBRefController : NSObject <PBRefContextDelegate> {
|
|
IBOutlet __weak PBGitHistoryController *historyController;
|
|
IBOutlet NSArrayController *commitController;
|
|
IBOutlet PBCommitList *commitList;
|
|
|
|
IBOutlet NSPopUpButton *branchPopUp;
|
|
}
|
|
|
|
- (void) checkout:(PBRefMenuItem *)sender;
|
|
- (void) createBranch:(PBRefMenuItem *)sender;
|
|
- (void) copySHA:(PBRefMenuItem *)sender;
|
|
- (void) copyPatch:(PBRefMenuItem *)sender;
|
|
- (void) createTag:(PBRefMenuItem *)sender;
|
|
- (void) showTagInfoSheet:(PBRefMenuItem *)sender;
|
|
|
|
- (NSArray *) menuItemsForRef:(PBGitRef *)ref;
|
|
- (NSArray *) menuItemsForCommit:(PBGitCommit *)commit;
|
|
|
|
- (void) changeBranch:(NSMenuItem *)sender;
|
|
- (void) selectCurrentBranch;
|
|
- (void) updateBranchMenu;
|
|
|
|
@end
|