File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
GitVersion.Core/VersionCalculation
GitVersion.LibGit2Sharp/Git Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,21 @@ public bool Exclude(ICommit? commit, out string? reason)
2828
2929 if ( commit != null )
3030 {
31- var patchPaths = repository . FindPatchPaths ( commit , context . Configuration . TagPrefixPattern ) ;
31+ var patchPaths = repository . FindPatchPaths ( commit , this . context . Configuration . TagPrefixPattern ) ;
3232
3333 if ( patchPaths != null )
3434 {
35- switch ( mode )
35+ switch ( this . mode )
3636 {
3737 case PathFilterMode . Inclusive :
38- if ( ! paths . Any ( path => patchPaths . Any ( p => p . StartsWith ( path , StringComparison . OrdinalIgnoreCase ) ) ) )
38+ if ( ! this . paths . Any ( path => patchPaths . Any ( p => p . StartsWith ( path , StringComparison . OrdinalIgnoreCase ) ) ) )
3939 {
4040 reason = "Source was ignored due to commit path is not present" ;
4141 return true ;
4242 }
4343 break ;
4444 case PathFilterMode . Exclusive :
45- if ( paths . Any ( path => patchPaths . All ( p => p . StartsWith ( path , StringComparison . OrdinalIgnoreCase ) ) ) )
45+ if ( this . paths . Any ( path => patchPaths . All ( p => p . StartsWith ( path , StringComparison . OrdinalIgnoreCase ) ) ) )
4646 {
4747 reason = "Source was ignored due to commit path excluded" ;
4848 return true ;
Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ public void DiscoverRepository(string? gitDirectory)
5858 public IEnumerable < string > ? FindPatchPaths ( ICommit commit , string ? tagPrefix )
5959 {
6060 Patch ? patch = null ;
61- var innerCommit = RepositoryInstance . Commits . First ( c => c . Sha == commit . Sha ) ;
61+ var innerCommit = this . RepositoryInstance . Commits . First ( c => c . Sha == commit . Sha ) ;
6262 var match = new Regex ( $ "^({ tagPrefix ?? "" } ).*$", RegexOptions . Compiled ) ;
6363
6464 if ( ! this . patchCache . ContainsKey ( commit . Sha ) )
6565 {
66- if ( ! RepositoryInstance . Tags . Any ( t => t . Target . Sha == commit . Sha && match . IsMatch ( t . FriendlyName ) ) )
66+ if ( ! this . RepositoryInstance . Tags . Any ( t => t . Target . Sha == commit . Sha && match . IsMatch ( t . FriendlyName ) ) )
6767 {
6868 Tree commitTree = innerCommit . Tree ; // Main Tree
6969 Tree ? parentCommitTree = innerCommit . Parents . FirstOrDefault ( ) ? . Tree ; // Secondary Tree
70- patch = RepositoryInstance . Diff . Compare < Patch > ( parentCommitTree , commitTree ) ; // Difference
70+ patch = this . RepositoryInstance . Diff . Compare < Patch > ( parentCommitTree , commitTree ) ; // Difference
7171 this . patchCache [ commit . Sha ] = patch ;
7272 }
7373 }
You can’t perform that action at this time.
0 commit comments