瀏覽代碼

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})")`;
}
get authorNotYou() {
return this._item.author !== 'You' ? this.author : emptyStr;
}
get authorAgo() {
return this._padOrTruncate(this._authorDateAgo, this._options.tokenOptions.authorAgo);
}

Loading…
取消
儲存