Skip to content

Commit

Permalink
Updates tag quick pick
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Oct 31, 2021
1 parent a9282cc commit 26ac077
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/quickpicks/gitQuickPickItems.ts
Expand Up @@ -387,13 +387,13 @@ export namespace TagQuickPickItem {
}

if (options.ref) {
description = description
? `${description}${Strings.pad('$(git-commit)', 2, 2)}${GitRevision.shorten(tag.sha)}`
: `${Strings.pad('$(git-commit)', 0, 2)}${GitRevision.shorten(tag.sha)}`;
description = `${description}${Strings.pad('$(git-commit)', description ? 2 : 0, 2)}${GitRevision.shorten(
tag.sha,
)}`;

description = description
? `${description}${Strings.pad(GlyphChars.Dot, 2, 2)}${tag.formattedDate}`
: tag.formattedDate;
description = `${description ? `${description}${Strings.pad(GlyphChars.Dot, 2, 2)}` : ''}${
tag.formattedDate
}`;
}

if (options.message) {
Expand Down

0 comments on commit 26ac077

Please sign in to comment.