Browse Source

Fixes create branch/tag quick pick titles

main
Eric Amodio 4 years ago
parent
commit
ecf436b189
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/commands/git/branch.ts
  2. +2
    -2
      src/commands/git/tag.ts

+ 1
- 1
src/commands/git/branch.ts View File

@ -266,7 +266,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: ` ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`,
titleContext: ` from ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`,
value: state.name ?? GitReference.getNameWithoutRemote(state.reference),
});
if (result === StepResult.Break) continue;

+ 2
- 2
src/commands/git/tag.ts View File

@ -235,7 +235,7 @@ export class TagGitCommand extends QuickCommand {
if (state.counter < 4 || state.name == null) {
const result = yield* inputTagNameStep(state, context, {
placeholder: 'Please provide a name for the new tag',
titleContext: ` at ${GitReference.toString(state.reference, { icon: false })}`,
titleContext: ` at ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`,
value: state.name ?? GitReference.getNameWithoutRemote(state.reference),
});
if (result === StepResult.Break) continue;
@ -273,7 +273,7 @@ export class TagGitCommand extends QuickCommand {
): StepResultGenerator<string> {
const step = QuickCommand.createInputStep({
title: appendReposToTitle(
`${context.title} at ${GitReference.toString(state.reference, { icon: false })}`,
`${context.title} at ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`,
state,
context,
),

Loading…
Cancel
Save