瀏覽代碼

Fixes #437 - Removes --first-parent and -m from file history

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

+ 1
- 0
CHANGELOG.md 查看文件

@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#444](https://github.com/eamodio/vscode-gitlens/issues/444) - GitLens custom viewlet icon slightly larger than standard
- Fixes [#437](https://github.com/eamodio/vscode-gitlens/issues/437) - Remove --first-parent from git commands to show file history from merged in repositories
## [8.5.0] - 2018-07-16
### Added

+ 4
- 4
src/git/git.ts 查看文件

@ -34,7 +34,7 @@ const logFormat = [
`${lb}f${rb}`
].join('%n');
const defaultLogParams = ['log', '--name-status', '-M', `--format=${logFormat}`];
const defaultLogParams = ['log', '--name-status', `--format=${logFormat}`];
const stashFormat = [
`${lb}${sl}f${rb}`,
@ -451,7 +451,7 @@ export class Git {
}
static log(repoPath: string, options: { maxCount?: number; ref?: string; reverse?: boolean }) {
const params = [...defaultLogParams, '--full-history', '-m'];
const params = [...defaultLogParams, '--full-history', '-M', '-m'];
if (options.maxCount && !options.reverse) {
params.push(`-n${options.maxCount}`);
}
@ -486,7 +486,7 @@ export class Git {
}
if (options.renames) {
params.push('--follow', '-m', '--first-parent');
params.push('--follow');
}
if (options.ref && !Git.isStagedUncommitted(options.ref)) {
@ -535,7 +535,7 @@ export class Git {
}
static log_search(repoPath: string, search: string[] = [], options: { maxCount?: number } = {}) {
const params = [...defaultLogParams, '-m', '-i'];
const params = [...defaultLogParams, '-M', '-m', '-i'];
if (options.maxCount) {
params.push(`-n${options.maxCount}`);
}

Loading…
取消
儲存