From a576eb3afe8c79621e02f5125714f42fc7c4ff7f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 15 Oct 2020 21:51:25 -0400 Subject: [PATCH] Changes create branch title to be clearer --- src/commands/git/branch.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/git/branch.ts b/src/commands/git/branch.ts index a2b6f7c..26bd82f 100644 --- a/src/commands/git/branch.ts +++ b/src/commands/git/branch.ts @@ -169,7 +169,10 @@ export class BranchGitCommand extends QuickCommand { this.subcommand = state.subcommand; - context.title = getTitle(state.subcommand === 'delete' ? 'Branches' : this.title, state.subcommand); + context.title = getTitle( + state.subcommand === 'create' ? 'Branch from' : state.subcommand === 'delete' ? 'Branches' : this.title, + state.subcommand, + ); if (state.counter < 2 || state.repo == null || typeof state.repo === 'string') { skippedStepTwo = false; @@ -266,7 +269,7 @@ export class BranchGitCommand extends QuickCommand { if (state.counter < 4 || state.name == null) { const result = yield* inputBranchNameStep(state, context, { placeholder: 'Please provide a name for the new branch', - titleContext: ` from ${GitReference.toString(state.reference, { icon: false })}`, + titleContext: ` ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`, value: state.name ?? GitReference.getNameWithoutRemote(state.reference), }); if (result === StepResult.Break) continue;