mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-17 09:45:36 -05:00
Closes #63 - Switch commit message and author in commit pick list
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user