Adds message truncation at newline

This commit is contained in:
Eric Amodio
2017-09-11 00:41:11 -04:00
parent 4102bdd471
commit a2dc65c044
5 changed files with 32 additions and 24 deletions

View File

@@ -187,7 +187,10 @@ export class Annotations {
}
static trailing(commit: GitCommit, format: string, dateFormat: string | null, cfgTheme: IThemeConfig): DecorationOptions {
const message = CommitFormatter.fromTemplate(format, commit, dateFormat);
const message = CommitFormatter.fromTemplate(format, commit, {
truncateMessageAtNewLine: true,
dateFormat: dateFormat
} as ICommitFormatOptions);
return {
renderOptions: {
after: {