Browse Source

Fixes #701 - adds missing --use-mailmap flag

main
Eric Amodio 5 years ago
parent
commit
f97f935379
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/git/git.ts

+ 1
- 0
CHANGELOG.md View File

@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#701](https://github.com/eamodio/vscode-gitlens/issues/701) - Contributors shows no commits for mailmapped committer name
- Fixes issues with the _Line History_ view sometimes showing a duplicate and out of order commit
- Fixes broken _Open File_ command on the root node of the _File History_ and _Line History_ views
- Fixes broken _Open Revision_ command on status files of the _Repositories_ view

+ 1
- 1
src/git/git.ts View File

@ -617,7 +617,7 @@ export class Git {
static log(repoPath: string, options: { authors?: string[]; maxCount?: number; ref?: string; reverse?: boolean }) {
const params = [...defaultLogParams, '--full-history', '-M', '-m'];
if (options.authors) {
params.push(...options.authors.map(a => `--author=${a}`));
params.push('--use-mailmap', ...options.authors.map(a => `--author=${a}`));
}
if (options.maxCount && !options.reverse) {
params.push(`-n${options.maxCount}`);

Loading…
Cancel
Save