mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Git - pass the similarityThreshold to git diff-tree (#238367)
This commit is contained in:
@@ -1166,7 +1166,10 @@ export class Repository implements Disposable {
|
||||
}
|
||||
|
||||
diffTrees(treeish1: string, treeish2?: string): Promise<Change[]> {
|
||||
return this.run(Operation.Diff, () => this.repository.diffTrees(treeish1, treeish2));
|
||||
const scopedConfig = workspace.getConfiguration('git', Uri.file(this.root));
|
||||
const similarityThreshold = scopedConfig.get<number>('similarityThreshold', 50);
|
||||
|
||||
return this.run(Operation.Diff, () => this.repository.diffTrees(treeish1, treeish2, { similarityThreshold }));
|
||||
}
|
||||
|
||||
getMergeBase(ref1: string, ref2: string, ...refs: string[]): Promise<string | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user