@@ -78,7 +78,6 @@ import type {
7878 GitGraphRowTag ,
7979} from '../../../git/models/graph' ;
8080import type { GitLog } from '../../../git/models/log' ;
81- import type { MergeConflict } from '../../../git/models/mergeConflict' ;
8281import type { GitBranchReference , GitReference } from '../../../git/models/reference' ;
8382import { createReference , isBranchReference } from '../../../git/models/reference.utils' ;
8483import type { GitReflog } from '../../../git/models/reflog' ;
@@ -128,7 +127,6 @@ import {
128127 parseGitLogSimpleFormat ,
129128 parseGitLogSimpleRenamed ,
130129} from '../../../git/parsers/logParser' ;
131- import { parseMergeTreeConflict } from '../../../git/parsers/mergeTreeParser' ;
132130import { parseGitRefLog , parseGitRefLogDefaultFormat } from '../../../git/parsers/reflogParser' ;
133131import { parseGitLsFiles , parseGitTree } from '../../../git/parsers/treeParser' ;
134132import type { GitSearch , GitSearchResultData , GitSearchResults } from '../../../git/search' ;
@@ -4971,43 +4969,6 @@ export class LocalGitProvider implements GitProvider, Disposable {
49714969 return undefined ;
49724970 }
49734971 }
4974-
4975- @log ( )
4976- async getPotentialMergeOrRebaseConflict (
4977- repoPath : string ,
4978- branch : string ,
4979- targetBranch : string ,
4980- ) : Promise < MergeConflict | undefined > {
4981- const scope = getLogScope ( ) ;
4982-
4983- try {
4984- // If we have don't have Git v2.33+, just return
4985- if ( ! ( await this . git . isAtLeastVersion ( '2.33' ) ) ) {
4986- return undefined ;
4987- }
4988-
4989- let data ;
4990- try {
4991- data = await this . git . merge_tree ( repoPath , branch , targetBranch , '-z' , '--name-only' , '--no-messages' ) ;
4992- } catch ( ex ) {
4993- Logger . error ( ex , scope ) ;
4994- }
4995- if ( ! data ) return undefined ;
4996-
4997- const mergeConflict = parseMergeTreeConflict ( data ) ;
4998- if ( ! mergeConflict . conflicts . length ) return undefined ;
4999-
5000- return {
5001- repoPath : repoPath ,
5002- branch : branch ,
5003- target : targetBranch ,
5004- files : mergeConflict . conflicts ,
5005- } ;
5006- } catch ( ex ) {
5007- Logger . error ( ex , scope ) ;
5008- throw ex ;
5009- }
5010- }
50114972}
50124973
50134974async function getEncoding ( uri : Uri ) : Promise < string > {
0 commit comments