mirror of
https://github.com/kahole/edamagit.git
synced 2024-09-11 07:15:31 +03:00
Set --no-ext-diff when running git diff
If a user has the following set in their git config: ```properties [diff] external = difft ``` edmagit will fail to parse the `git diff` output. This should fix that. Fixes https://github.com/kahole/edamagit/issues/228
This commit is contained in:
parent
5254658934
commit
4ee6091b36
@ -82,7 +82,7 @@ async function diffWorktree({ repository }: MenuState) {
|
||||
}
|
||||
|
||||
async function diff(repository: MagitRepository, id: string, args: string[] = []) {
|
||||
const diffResult = await gitRun(repository.gitRepository, ['diff', ...args]);
|
||||
const diffResult = await gitRun(repository.gitRepository, ['diff', '--no-ext-diff', ...args]);
|
||||
|
||||
const uri = DiffView.encodeLocation(repository, id);
|
||||
return ViewUtils.showView(uri, new DiffView(uri, diffResult.stdout));
|
||||
|
Loading…
Reference in New Issue
Block a user