|
|
@ -65,12 +65,12 @@ export default class BlameAnnotationFormatter { |
|
|
|
} |
|
|
|
|
|
|
|
static getAnnotationHover(config: IBlameConfig, line: IGitCommitLine, commit: GitCommit): string | Array<string> { |
|
|
|
const message = commit.message.replace(/\n/g, '\n\n'); |
|
|
|
const message = `> \`${commit.message.replace(/\n/g, '\`\n>\n> \`')}\``; |
|
|
|
if (commit.isUncommitted) { |
|
|
|
return `\`${'0'.repeat(8)}\` __Uncommitted changes__`; |
|
|
|
} |
|
|
|
|
|
|
|
return `\`${commit.sha}\` __${commit.author}__, ${moment(commit.date).fromNow()} _(${moment(commit.date).format('MMMM Do, YYYY h:MMa')})_ \n\n > ${message}`; |
|
|
|
return `\`${commit.sha}\` __${commit.author}__, ${moment(commit.date).fromNow()} _(${moment(commit.date).format('MMMM Do, YYYY h:MMa')})_ \n\n${message}`; |
|
|
|
} |
|
|
|
|
|
|
|
static getAuthorAndDate(config: IBlameConfig, commit: GitCommit, format?: string, force: boolean = false) { |
|
|
|