Skip to content

Commit

Permalink
Adds from to tag git commands title
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Oct 31, 2021
1 parent 4038c3c commit 1795f99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/git/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class TagGitCommand extends QuickCommand<State> {
placeholder: context =>
`Choose a branch${context.showTags ? ' or tag' : ''} to create the new tag from`,
picked: state.reference?.ref ?? (await state.repo.getBranch())?.ref,
titleContext: ' from',
value: GitReference.isRevision(state.reference) ? state.reference.ref : undefined,
});
// Always break on the first step (so we will go back)
Expand Down Expand Up @@ -349,7 +350,7 @@ export class TagGitCommand extends QuickCommand<State> {
}

context.title = getTitle(
Strings.pluralize('Tag', state.references.length, { number: '' }).trim(),
Strings.pluralize('Tag', state.references.length, { only: true }),
state.subcommand,
);

Expand Down

0 comments on commit 1795f99

Please sign in to comment.