Closes #63 - Switch commit message and author in commit pick list

This commit is contained in:
Eric Amodio
2017-04-10 12:50:23 -04:00
parent e5653d1c66
commit a5be6f0533
3 changed files with 14 additions and 11 deletions

View File

@@ -51,4 +51,11 @@ export class GitLogCommit extends GitCommit {
get nextUri(): Uri {
return this.nextFileName ? Uri.file(path.resolve(this.repoPath, this.nextFileName)) : this.uri;
}
getDiffStatus(): string {
const added = this.fileStatuses.filter(_ => _.status === 'A' || _.status === '?').length;
const deleted = this.fileStatuses.filter(_ => _.status === 'D').length;
const changed = this.fileStatuses.filter(_ => _.status !== 'A' && _.status !== '?' && _.status !== 'D').length;
return `+${added} ~${changed} -${deleted}`;
}
}