Explorar el Código

Adds authorNotYou token

main
Eric Amodio hace 4 años
padre
commit
6ee30f8f5c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/git/formatters/commitFormatter.ts

+ 4
- 0
src/git/formatters/commitFormatter.ts Ver fichero

@ -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);
}

Cargando…
Cancelar
Guardar