1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-08-15 18:20:30 +03:00

Merge pull request #293 from garymm/develop

Set --no-ext-diff when running git diff
This commit is contained in:
Kristian Andersen Hole 2024-03-25 18:27:22 +01:00 committed by GitHub
commit d02ed6fd95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));