|
|
@ -834,16 +834,20 @@ export namespace Git { |
|
|
|
params.push('--all'); |
|
|
|
} |
|
|
|
|
|
|
|
params.push(renames && startLine == null && all !== true ? '--follow' : '-m'); |
|
|
|
|
|
|
|
if (filters != null && filters.length !== 0) { |
|
|
|
params.push(`--diff-filter=${filters.join(emptyStr)}`); |
|
|
|
// Can't allow rename detection (`--follow`) if `all` or a `startLine` is specified
|
|
|
|
if (renames && (all || startLine != null)) { |
|
|
|
renames = false; |
|
|
|
} |
|
|
|
|
|
|
|
if ((all !== true && renames) || firstParent) { |
|
|
|
params.push(renames ? '--follow' : '-m'); |
|
|
|
if (/*renames ||*/ firstParent) { |
|
|
|
params.push('--first-parent'); |
|
|
|
} |
|
|
|
|
|
|
|
if (filters != null && filters.length !== 0) { |
|
|
|
params.push(`--diff-filter=${filters.join(emptyStr)}`); |
|
|
|
} |
|
|
|
|
|
|
|
if (format !== 'refs') { |
|
|
|
if (startLine == null) { |
|
|
|
if (format === 'simple') { |
|
|
|