File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -658,15 +658,15 @@ private void Refresh()
658658 rule . Matches ( links , message ) ;
659659 }
660660
661- var shas = REG_SHA_FORMAT ( ) . Matches ( message ) ;
662- for ( int i = 0 ; i < shas . Count ; i ++ )
661+ var matches = REG_SHA_FORMAT ( ) . Matches ( message ) ;
662+ for ( int i = 0 ; i < matches . Count ; i ++ )
663663 {
664- var sha = shas [ i ] ;
665- if ( ! sha . Success )
664+ var match = matches [ i ] ;
665+ if ( ! match . Success )
666666 continue ;
667667
668- var start = sha . Index ;
669- var len = sha . Length ;
668+ var start = match . Index ;
669+ var len = match . Length ;
670670 var intersect = false ;
671671 foreach ( var link in links )
672672 {
@@ -680,10 +680,10 @@ private void Refresh()
680680 if ( intersect )
681681 continue ;
682682
683- var hash = sha . Groups [ 1 ] . Value ;
684- var isCommitSHA = new Commands . IsCommitSHA ( _repo . FullPath , hash ) . Result ( ) ;
683+ var sha = match . Groups [ 1 ] . Value ;
684+ var isCommitSHA = new Commands . IsCommitSHA ( _repo . FullPath , sha ) . Result ( ) ;
685685 if ( isCommitSHA )
686- links . Add ( new Models . Hyperlink ( start , len , hash , true ) ) ;
686+ links . Add ( new Models . Hyperlink ( start , len , sha , true ) ) ;
687687 }
688688
689689 if ( links . Count > 0 )
You can’t perform that action at this time.
0 commit comments