Browse Source

Adds the current user e-mail when uncommitted

main
Eric Amodio 6 years ago
parent
commit
6ac613961b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/git/parsers/blameParser.ts

+ 5
- 0
src/git/parsers/blameParser.ts View File

@ -73,6 +73,11 @@ export class GitBlameParser {
break; break;
case 'author-mail': case 'author-mail':
if (Git.isUncommitted(entry.sha)) {
entry.authorEmail = currentUser !== undefined ? currentUser.email : undefined;
continue;
}
entry.authorEmail = lineParts entry.authorEmail = lineParts
.slice(1) .slice(1)
.join(' ') .join(' ')

Loading…
Cancel
Save