mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 17:25:28 -05:00
Fixes #96 - stops opening external diff if configured
This commit is contained in:
@@ -185,7 +185,7 @@ export class Git {
|
||||
}
|
||||
|
||||
static diff(repoPath: string, fileName: string, sha1?: string, sha2?: string, encoding?: string) {
|
||||
const params = [`diff`, `--diff-filter=M`, `-M`];
|
||||
const params = [`diff`, `--diff-filter=M`, `-M`, `--no-ext-diff`];
|
||||
if (sha1) {
|
||||
params.push(sha1);
|
||||
}
|
||||
@@ -197,7 +197,7 @@ export class Git {
|
||||
}
|
||||
|
||||
static diff_nameStatus(repoPath: string, sha1?: string, sha2?: string) {
|
||||
const params = [`diff`, `--name-status`, `-M`];
|
||||
const params = [`diff`, `--name-status`, `-M`, `--no-ext-diff`];
|
||||
if (sha1) {
|
||||
params.push(sha1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user