Skip to content

Commit f97f935

Browse files
committed
Fixes #701 - adds missing --use-mailmap flag
1 parent 7b7b788 commit f97f935

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1717

1818
### Fixed
1919

20+
- Fixes [#701](https://github.com/eamodio/vscode-gitlens/issues/701) - Contributors shows no commits for mailmapped committer name
2021
- Fixes issues with the _Line History_ view sometimes showing a duplicate and out of order commit
2122
- Fixes broken _Open File_ command on the root node of the _File History_ and _Line History_ views
2223
- Fixes broken _Open Revision_ command on status files of the _Repositories_ view

src/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ export class Git {
617617
static log(repoPath: string, options: { authors?: string[]; maxCount?: number; ref?: string; reverse?: boolean }) {
618618
const params = [...defaultLogParams, '--full-history', '-M', '-m'];
619619
if (options.authors) {
620-
params.push(...options.authors.map(a => `--author=${a}`));
620+
params.push('--use-mailmap', ...options.authors.map(a => `--author=${a}`));
621621
}
622622
if (options.maxCount && !options.reverse) {
623623
params.push(`-n${options.maxCount}`);

0 commit comments

Comments
 (0)