66
77namespace Documentation . Builder . Tracking ;
88
9- public class IntegrationGitRepositoryTracker ( ILogger < IntegrationGitRepositoryTracker > logger , string lookupPath ) : IRepositoryTracker
9+ public class IntegrationGitRepositoryTracker ( string lookupPath ) : IRepositoryTracker
1010{
11- private ILogger < IntegrationGitRepositoryTracker > Log { get ; } = logger ;
1211 private string LookupPath { get ; } = $ "{ lookupPath } /";
1312 public IEnumerable < GitChange > GetChangedFiles ( )
1413 {
1514 var deletedFiles = Environment . GetEnvironmentVariable ( "DELETED_FILES" ) ?? string . Empty ;
16- Log . LogInformation ( "Deleted files: {File} as deleted in integration build" , deletedFiles ) ;
1715 if ( ! string . IsNullOrEmpty ( deletedFiles ) )
1816 {
1917 foreach ( var file in deletedFiles . Split ( ' ' , StringSplitOptions . RemoveEmptyEntries ) . Where ( f => f . StartsWith ( LookupPath ) ) )
2018 {
21- Log . LogInformation ( "Found {File} as deleted in integration build" , file ) ;
2219 yield return new GitChange ( file , GitChangeType . Deleted ) ;
2320 }
2421 }
@@ -38,12 +35,10 @@ public IEnumerable<GitChange> GetChangedFiles()
3835 }
3936
4037 var renamedFiles = Environment . GetEnvironmentVariable ( "RENAMED_FILES" ) ;
41- Log . LogInformation ( "Renamed files: {File} as deleted in integration build" , renamedFiles ) ;
4238 if ( ! string . IsNullOrEmpty ( renamedFiles ) )
4339 {
4440 foreach ( var pair in renamedFiles . Split ( ' ' , StringSplitOptions . RemoveEmptyEntries ) . Where ( f => f . StartsWith ( LookupPath ) ) )
4541 {
46- Log . LogInformation ( "Found {File} as renamed in integration build" , pair ) ;
4742 var parts = pair . Split ( ':' ) ;
4843 if ( parts . Length == 2 )
4944 yield return new RenamedGitChange ( parts [ 0 ] , parts [ 1 ] , GitChangeType . Renamed ) ;
0 commit comments