mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-21 17:26:05 -05:00
Fixes extra newline in multiline commit messages
This commit is contained in:
@@ -138,7 +138,7 @@ export class CommitFormatter {
|
||||
}
|
||||
|
||||
static toHoverAnnotation(commit: GitCommit, dateFormat: string = 'MMMM Do, YYYY h:MMa'): string | string[] {
|
||||
const message = commit.isUncommitted ? '' : `\n\n> ${commit.message.replace(/\n/g, '\n>\n> ')}`;
|
||||
const message = commit.isUncommitted ? '' : `\n\n> ${commit.message.replace(/\n/g, ' \n')}`;
|
||||
return `\`${commit.shortSha}\` __${commit.author}__, ${moment(commit.date).fromNow()} _(${moment(commit.date).format(dateFormat)})_${message}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user