diff --git a/PBRefMenuItem.m b/PBRefMenuItem.m index 4b47fdc..cfbe710 100644 --- a/PBRefMenuItem.m +++ b/PBRefMenuItem.m @@ -59,7 +59,8 @@ [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]];