PullAnalysisRequest.cs 650 B

12345678910111213141516171819202122
  1. // Copyright (c) 2025 TerraByte Inc.
  2. //
  3. // A data container for the result of a pre-pull conflict analysis.
  4. // It indicates if conflicts were found and which files are involved.
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. namespace Terra.Arbitrator.Settings
  8. {
  9. public class PullAnalysisResult
  10. {
  11. public bool HasConflicts { get; private set; }
  12. public List<string> ConflictingFiles { get; private set; }
  13. public PullAnalysisResult(List<string> conflictingFiles)
  14. {
  15. ConflictingFiles = conflictingFiles ?? new List<string>();
  16. HasConflicts = ConflictingFiles.Any();
  17. }
  18. }
  19. }