Skip to content

Commit 4a2c139

Browse files
David CatmullDavid Catmull
authored andcommitted
menus for files in stash view
1 parent 8676e86 commit 4a2c139

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

PBGitWindowController.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
- (IBAction) cloneTo:(id)sender;
5757
- (IBAction) refresh:(id)sender;
5858

59-
- (void)selectCommitForSha:(NSString*)sha;
59+
- (void)selectCommitForSha:(NSString *)sha;
60+
- (NSArray *)menuItemsForPaths:(NSArray *)paths;
6061
- (void)setHistorySearch:(NSString *)searchString mode:(NSInteger)mode;
6162

6263
@end

PBGitWindowController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ - (void) selectCommitForSha:(NSString *)sha
241241
[sidebarController.historyViewController selectCommit:sha];
242242
}
243243

244+
- (NSArray *) menuItemsForPaths:(NSArray *)paths
245+
{
246+
return [sidebarController.historyViewController menuItemsForPaths:paths];
247+
}
248+
244249
- (void)setHistorySearch:(NSString *)searchString mode:(NSInteger)mode
245250
{
246251
[sidebarController setHistorySearch:searchString mode:mode];

PBWebStashController.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ - (void)selectCommit:(NSString *)sha
1616

1717
- (NSArray*) menuItemsForPath:(NSString*)path
1818
{
19-
// return [[stashController superController] menuItemsForPaths:[NSArray arrayWithObject:path]];
20-
return nil;
19+
return [[stashController superController] menuItemsForPaths:[NSArray arrayWithObject:path]];
2120
}
2221

2322
@end

0 commit comments

Comments
 (0)