Sfoglia il codice sorgente

Adds `from` to tag git commands title

main
Eric Amodio 3 anni fa
parent
commit
1795f992a8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      src/commands/git/tag.ts

+ 2
- 1
src/commands/git/tag.ts Vedi File

@ -225,6 +225,7 @@ export class TagGitCommand extends QuickCommand {
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)
@ -349,7 +350,7 @@ export class TagGitCommand extends QuickCommand {
}
context.title = getTitle(
Strings.pluralize('Tag', state.references.length, { number: '' }).trim(),
Strings.pluralize('Tag', state.references.length, { only: true }),
state.subcommand,
);

Caricamento…
Annulla
Salva