Skip to content

Conversation

butschster
Copy link
Collaborator

This PR refactors the Git-related components in the codebase to improve organization, maintainability, and dependency management.

Dependency Injection

  • Refactored GitSourceFactory to properly leverage the DI container
  • Moved source initialization to GitDiffSourceBootloader
  • Added explicit dependencies in bootloaders

Logging Improvements

  • Added LoggerPrefix attributes to all Git-related classes for better log filtering and organization

Refactor Git Command Execution in GitDiff Source Classes

This PR refactor the implementation of Git command execution across the GitDiff source classes.

- Move `GitClient` to Lib/Git for better code organization
- Add `LoggerPrefix` attributes to Git-related classes for better log filtering
- Refactor `GitSourceFactory` to use proper dependency injection, move source initialization to GitDiffSourceBootloader
- Remove redundant PHPDoc and simplify code
- Update dependency references across the codebase
@butschster butschster added enhancement New feature or request lib:utils Utilities and helper components in Lib/ labels Apr 6, 2025
@butschster butschster added this to the 1.x milestone Apr 6, 2025
@butschster butschster self-assigned this Apr 6, 2025
@butschster butschster merged commit 50be967 into main Apr 6, 2025
8 checks passed
@butschster butschster deleted the refactor/git-diff-source branch April 6, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lib:utils Utilities and helper components in Lib/

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant