Browse Source

Adds authorNotYou token

main
Eric Amodio 4 years ago
parent
commit
6ee30f8f5c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/git/formatters/commitFormatter.ts

+ 4
- 0
src/git/formatters/commitFormatter.ts View File

@ -155,6 +155,10 @@ export class CommitFormatter extends Formatter {
return `[${author}](mailto:${this._item.email} "Email ${this._item.author} (${this._item.email})")`;
}
get authorNotYou() {
return this._item.author !== 'You' ? this.author : emptyStr;
}
get authorAgo() {
return this._padOrTruncate(this._authorDateAgo, this._options.tokenOptions.authorAgo);
}

Loading…
Cancel
Save