浏览代码

Switches to not show merge commits on file history

main
Eric Amodio 7 年前
父节点
当前提交
3e815f6bf8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/git/git.ts

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

@ -153,7 +153,7 @@ export class Git {
static log(fileName: string, sha?: string, repoPath?: string, maxCount?: number, reverse: boolean = false) {
const [file, root]: [string, string] = Git.splitPath(Git.normalizePath(fileName), repoPath);
const params = [...DefaultLogParams, `--follow`];
const params = [...DefaultLogParams, `--follow`, `--no-merges`];
if (maxCount && !reverse) {
params.push(`-n${maxCount}`);
}
@ -175,7 +175,7 @@ export class Git {
static logRange(fileName: string, start: number, end: number, sha?: string, repoPath?: string, maxCount?: number) {
const [file, root]: [string, string] = Git.splitPath(Git.normalizePath(fileName), repoPath);
const params = [...DefaultLogParams];
const params = [...DefaultLogParams, `--no-merges`];
if (maxCount) {
params.push(`-n${maxCount}`);
}

正在加载...
取消
保存