浏览代码

Adds authorNotYou token

main
Eric Amodio 4 年前
父节点
当前提交
6ee30f8f5c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      src/git/formatters/commitFormatter.ts

+ 4
- 0
src/git/formatters/commitFormatter.ts 查看文件

@ -155,6 +155,10 @@ export class CommitFormatter extends Formatter {
return `[${author}](mailto:${this._item.email} "Email ${this._item.author} (${this._item.email})")`; 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() { get authorAgo() {
return this._padOrTruncate(this._authorDateAgo, this._options.tokenOptions.authorAgo); return this._padOrTruncate(this._authorDateAgo, this._options.tokenOptions.authorAgo);
} }

正在加载...
取消
保存