Skip to content

Commit

Permalink
Show the branch that will be tracked when creating a tracking branch
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherbard committed Sep 20, 2010
1 parent 6f83f23 commit 929f9fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PBRefMenuItem.m
Expand Up @@ -59,7 +59,8 @@ + (NSArray *) defaultMenuItemsForRef:(PBGitRef *)ref inRepository:(PBGitReposito
[items addObject:[PBRefMenuItem separatorItem]];

// create branch
[items addObject:[PBRefMenuItem itemWithTitle:@"Create branch…" action:@selector(createBranch:) enabled:YES]];
NSString *createBranchTitle = [ref isRemoteBranch] ? [NSString stringWithFormat:@"Create branch that tracks %@", targetRefName] : @"Create branch…";
[items addObject:[PBRefMenuItem itemWithTitle:createBranchTitle action:@selector(createBranch:) enabled:YES]];

// create tag
[items addObject:[PBRefMenuItem itemWithTitle:@"Create Tag…" action:@selector(createTag:) enabled:YES]];
Expand Down

0 comments on commit 929f9fc

Please sign in to comment.