@@ -24,11 +24,11 @@ import type { GitDir } from '../../../git/gitProvider';
24
24
import type { GitDiffFilter } from '../../../git/models/diff' ;
25
25
import { isUncommitted , isUncommittedStaged , shortenRevision } from '../../../git/models/reference' ;
26
26
import type { GitUser } from '../../../git/models/user' ;
27
- import { GitBranchParser } from '../../../git/parsers/branchParser' ;
28
- import { GitLogParser } from '../../../git/parsers/logParser' ;
29
- import { GitReflogParser } from '../../../git/parsers/reflogParser' ;
27
+ import { parseGitBranchesDefaultFormat } from '../../../git/parsers/branchParser' ;
28
+ import { parseGitLogAllFormat , parseGitLogDefaultFormat } from '../../../git/parsers/logParser' ;
29
+ import { parseGitRefLogDefaultFormat } from '../../../git/parsers/reflogParser' ;
30
30
import { parseGitRemoteUrl } from '../../../git/parsers/remoteParser' ;
31
- import { GitTagParser } from '../../../git/parsers/tagParser' ;
31
+ import { parseGitTagsDefaultFormat } from '../../../git/parsers/tagParser' ;
32
32
import { splitAt } from '../../../system/array' ;
33
33
import { configuration } from '../../../system/configuration' ;
34
34
import { log } from '../../../system/decorators/log' ;
@@ -1011,7 +1011,7 @@ export class Git {
1011
1011
}
1012
1012
1013
1013
for_each_ref__branch ( repoPath : string , options : { all : boolean } = { all : false } ) {
1014
- const params = [ 'for-each-ref' , `--format=${ GitBranchParser . defaultFormat } ` , 'refs/heads' ] ;
1014
+ const params = [ 'for-each-ref' , `--format=${ parseGitBranchesDefaultFormat } ` , 'refs/heads' ] ;
1015
1015
if ( options . all ) {
1016
1016
params . push ( 'refs/remotes' ) ;
1017
1017
}
@@ -1045,7 +1045,7 @@ export class Git {
1045
1045
} ,
1046
1046
) {
1047
1047
if ( argsOrFormat == null ) {
1048
- argsOrFormat = [ '--name-status' , `--format=${ all ? GitLogParser . allFormat : GitLogParser . defaultFormat } ` ] ;
1048
+ argsOrFormat = [ '--name-status' , `--format=${ all ? parseGitLogAllFormat : parseGitLogDefaultFormat } ` ] ;
1049
1049
}
1050
1050
1051
1051
if ( typeof argsOrFormat === 'string' ) {
@@ -1242,7 +1242,7 @@ export class Git {
1242
1242
const [ file , root ] = splitPath ( fileName , repoPath , true ) ;
1243
1243
1244
1244
if ( argsOrFormat == null ) {
1245
- argsOrFormat = [ `--format=${ all ? GitLogParser . allFormat : GitLogParser . defaultFormat } ` ] ;
1245
+ argsOrFormat = [ `--format=${ all ? parseGitLogAllFormat : parseGitLogDefaultFormat } ` ] ;
1246
1246
}
1247
1247
1248
1248
if ( typeof argsOrFormat === 'string' ) {
@@ -1438,7 +1438,7 @@ export class Git {
1438
1438
'show' ,
1439
1439
'--stdin' ,
1440
1440
'--name-status' ,
1441
- `--format=${ GitLogParser . defaultFormat } ` ,
1441
+ `--format=${ parseGitLogDefaultFormat } ` ,
1442
1442
'--use-mailmap' ,
1443
1443
) ;
1444
1444
}
@@ -1451,7 +1451,7 @@ export class Git {
1451
1451
'log' ,
1452
1452
...( options ?. stdin ? [ '--stdin' ] : emptyArray ) ,
1453
1453
'--name-status' ,
1454
- `--format=${ GitLogParser . defaultFormat } ` ,
1454
+ `--format=${ parseGitLogDefaultFormat } ` ,
1455
1455
'--use-mailmap' ,
1456
1456
...search ,
1457
1457
...( options ?. ordering ? [ `--${ options . ordering } -order` ] : emptyArray ) ,
@@ -1542,7 +1542,7 @@ export class Git {
1542
1542
skip ?: number ;
1543
1543
} = { } ,
1544
1544
) : Promise < string > {
1545
- const params = [ 'log' , '--walk-reflogs' , `--format=${ GitReflogParser . defaultFormat } ` , '--date=iso8601' ] ;
1545
+ const params = [ 'log' , '--walk-reflogs' , `--format=${ parseGitRefLogDefaultFormat } ` , '--date=iso8601' ] ;
1546
1546
1547
1547
if ( ordering ) {
1548
1548
params . push ( `--${ ordering } -order` ) ;
@@ -2139,7 +2139,7 @@ export class Git {
2139
2139
}
2140
2140
2141
2141
tag ( repoPath : string ) {
2142
- return this . git < string > ( { cwd : repoPath } , 'tag' , '-l' , `--format=${ GitTagParser . defaultFormat } ` ) ;
2142
+ return this . git < string > ( { cwd : repoPath } , 'tag' , '-l' , `--format=${ parseGitTagsDefaultFormat } ` ) ;
2143
2143
}
2144
2144
2145
2145
worktree__add (
0 commit comments