瀏覽代碼

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

main
Eric Amodio 5 年之前
父節點
當前提交
f97f935379
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/git/git.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -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 查看文件

@ -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…
取消
儲存