@@ -30,7 +30,7 @@ public VersionField DetermineIncrementedField(GitVersionContext context, BaseVer
3030 {
3131 configuration . NotNull ( ) ;
3232
33- var commitMessageIncrement = FindCommitMessageIncrement ( this . repository , context , configuration , baseVersion . BaseVersionSource ) ;
33+ var commitMessageIncrement = FindCommitMessageIncrement ( context , configuration , baseVersion . BaseVersionSource ) ;
3434
3535 var defaultIncrement = configuration . Increment . ToVersionField ( ) ;
3636
@@ -73,8 +73,7 @@ public VersionField DetermineIncrementedField(GitVersionContext context, BaseVer
7373 : null ;
7474 }
7575
76- private VersionField ? FindCommitMessageIncrement ( IGitRepository repository , GitVersionContext context ,
77- EffectiveConfiguration configuration , ICommit ? baseCommit )
76+ private VersionField ? FindCommitMessageIncrement ( GitVersionContext context , EffectiveConfiguration configuration , ICommit ? baseCommit )
7877 {
7978 if ( baseCommit == null ) return null ;
8079
@@ -83,7 +82,7 @@ public VersionField DetermineIncrementedField(GitVersionContext context, BaseVer
8382 return null ;
8483 }
8584
86- var commits = GetIntermediateCommits ( repository , baseCommit , context . CurrentCommit ) ;
85+ var commits = GetIntermediateCommits ( baseCommit , context . CurrentCommit ) ;
8786
8887 // consider commit messages since latest tag only (see #3071)
8988 var tags = new HashSet < string ? > ( repository . Tags . Select ( t => t . TargetSha ) ) ;
@@ -106,33 +105,33 @@ private static Regex TryGetRegexOrDefault(string? messageRegex, Regex defaultReg
106105 : CompiledRegexCache . GetOrAdd ( messageRegex , pattern => new Regex ( pattern , RegexOptions . Compiled | RegexOptions . IgnoreCase ) ) ;
107106
108107 /// <summary>
109- /// Get the sequence of commits in a <paramref name=" repository"/> between a <paramref name="baseCommit"/> (exclusive)
108+ /// Get the sequence of commits in a repository between a <paramref name="baseCommit"/> (exclusive)
110109 /// and a particular <paramref name="headCommit"/> (inclusive)
111110 /// </summary>
112- private IEnumerable < ICommit > GetIntermediateCommits ( IGitRepository repository , IGitObject baseCommit , ICommit ? headCommit )
111+ private IEnumerable < ICommit > GetIntermediateCommits ( IGitObject baseCommit , ICommit ? headCommit )
113112 {
114- var map = GetHeadCommitsMap ( repository , headCommit ) ;
113+ var map = GetHeadCommitsMap ( headCommit ) ;
115114 if ( ! map . TryGetValue ( baseCommit . Sha , out var baseIndex ) ) return Enumerable . Empty < ICommit > ( ) ;
116115 var commitAfterBaseIndex = baseIndex + 1 ;
117- var headCommits = GetHeadCommits ( repository , headCommit ) ;
116+ var headCommits = GetHeadCommits ( headCommit ) ;
118117 return new ArraySegment < ICommit > ( headCommits , commitAfterBaseIndex , headCommits . Length - commitAfterBaseIndex ) ;
119118 }
120119
121120 /// <summary>
122121 /// Get a mapping of commit shas to their zero-based position in the sequence of commits from the beginning of a
123- /// <paramref name=" repository"/> to a particular <paramref name="headCommit"/>
122+ /// repository to a particular <paramref name="headCommit"/>
124123 /// </summary>
125- private Dictionary < string , int > GetHeadCommitsMap ( IGitRepository repository , ICommit ? headCommit ) =>
124+ private Dictionary < string , int > GetHeadCommitsMap ( ICommit ? headCommit ) =>
126125 this . headCommitsMapCache . GetOrAdd ( headCommit ? . Sha ?? "NULL" , ( ) =>
127- GetHeadCommits ( repository , headCommit )
126+ GetHeadCommits ( headCommit )
128127 . Select ( ( commit , index ) => ( commit . Sha , Index : index ) )
129128 . ToDictionary ( t => t . Sha , t => t . Index ) ) ;
130129
131130 /// <summary>
132- /// Get the sequence of commits from the beginning of a <paramref name=" repository"/> to a particular
131+ /// Get the sequence of commits from the beginning of a repository to a particular
133132 /// <paramref name="headCommit"/> (inclusive)
134133 /// </summary>
135- private ICommit [ ] GetHeadCommits ( IGitRepository repository , ICommit ? headCommit ) =>
134+ private ICommit [ ] GetHeadCommits ( ICommit ? headCommit ) =>
136135 this . headCommitsCache . GetOrAdd ( headCommit ? . Sha ?? "NULL" , ( ) =>
137136 GetCommitsReacheableFromHead ( repository , headCommit ) . ToArray ( ) ) ;
138137
0 commit comments