@@ -25,8 +25,8 @@ import type { GitWorktree } from '../../../../git/models/worktree';
2525import {
2626 getGraphParser ,
2727 getGraphStatsParser ,
28- getRefAndDateParser ,
29- getRefParser ,
28+ getShaAndDatesLogParser ,
29+ getShaLogParser ,
3030} from '../../../../git/parsers/logParser' ;
3131import type { GitGraphSearch , GitGraphSearchResultData , GitGraphSearchResults } from '../../../../git/search' ;
3232import { getGitArgsFromSearchQuery , getSearchQueryComparisonKey } from '../../../../git/search' ;
@@ -86,12 +86,12 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
8686 const deferStats = options ?. include ?. stats ; // && defaultLimit > 1000;
8787
8888 const parser = getGraphParser ( options ?. include ?. stats && ! deferStats ) ;
89- const refParser = getRefParser ( ) ;
89+ const shaParser = getShaLogParser ( ) ;
9090 const statsParser = getGraphStatsParser ( ) ;
9191
92- const [ refResult , stashResult , branchesResult , remotesResult , currentUserResult , worktreesResult ] =
92+ const [ shaResult , stashResult , branchesResult , remotesResult , currentUserResult , worktreesResult ] =
9393 await Promise . allSettled ( [
94- this . git . log ( repoPath , undefined , undefined , ...refParser . arguments , '-n1' , rev ?? 'HEAD' ) ,
94+ this . git . log ( repoPath , undefined , undefined , ...shaParser . arguments , '-n1' , rev ?? 'HEAD' ) ,
9595 this . provider . stash ?. getStash ( repoPath ) ,
9696 this . provider . branches . getBranches ( repoPath ) ,
9797 this . provider . remotes . getRemotes ( repoPath ) ,
@@ -121,7 +121,7 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
121121
122122 const remotes = getSettledValue ( remotesResult ) ;
123123 const remoteMap = remotes != null ? new Map ( remotes . map ( r => [ r . name , r ] ) ) : new Map < string , GitRemote > ( ) ;
124- const selectSha = first ( refParser . parse ( getSettledValue ( refResult ) ?? '' ) ) ;
124+ const selectSha = first ( shaParser . parse ( getSettledValue ( shaResult ) ?? '' ) ) ;
125125
126126 const downstreamMap = new Map < string , string [ ] > ( ) ;
127127
@@ -660,7 +660,7 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
660660
661661 const comparisonKey = getSearchQueryComparisonKey ( search ) ;
662662 try {
663- const refAndDateParser = getRefAndDateParser ( ) ;
663+ const parser = getShaAndDatesLogParser ( ) ;
664664
665665 const currentUser = search . query . includes ( '@me' )
666666 ? await this . provider . config . getCurrentUser ( repoPath )
@@ -672,15 +672,15 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
672672 { cwd : repoPath , cancellation : options ?. cancellation , configs : gitLogDefaultConfigs } ,
673673 'show' ,
674674 '-s' ,
675- ...refAndDateParser . arguments ,
675+ ...parser . arguments ,
676676 ...shas . values ( ) ,
677677 ...searchArgs ,
678678 '--' ,
679679 ) ;
680680
681681 let i = 0 ;
682682 const results : GitGraphSearchResults = new Map < string , GitGraphSearchResultData > (
683- map ( refAndDateParser . parse ( data ) , c => [
683+ map ( parser . parse ( data ) , c => [
684684 c . sha ,
685685 {
686686 i : i ++ ,
@@ -720,7 +720,7 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
720720 }
721721
722722 const args = [
723- ...refAndDateParser . arguments ,
723+ ...parser . arguments ,
724724 `-M${ similarityThreshold == null ? '' : `${ similarityThreshold } %` } ` ,
725725 '--use-mailmap' ,
726726 ] ;
@@ -770,7 +770,7 @@ export class GraphGitSubProvider implements GitGraphSubProvider {
770770
771771 let count = total ;
772772
773- for ( const r of refAndDateParser . parse ( data ) ) {
773+ for ( const r of parser . parse ( data ) ) {
774774 if ( includeOnlyStashes && ! stashes ?. has ( r . sha ) ) continue ;
775775
776776 if ( results . has ( r . sha ) ) {
0 commit comments