ソースを参照

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}`);
}

読み込み中…
キャンセル
保存