Skip to content

Abstract git log calls - #163

Merged
ibbem merged 5 commits into
developfrom
GitDiffer-refactorings
Jun 12, 2025
Merged

Abstract git log calls#163
ibbem merged 5 commits into
developfrom
GitDiffer-refactorings

Conversation

@ibbem

@ibbemibbem commented Jun 9, 2025

Copy link
Copy Markdown
Collaborator

This fixes#153, makes GitDiffer stateless and does a few other small refactorings.

@pmbittnerpmbittner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ibbem! I greatly appreciate the additional simplifications and refactorings. Only some small comments. Can we be sure that these changes are indeed a refactoring? Do we have any tests that cover the behavior of the repository traversal?

Comment threadsrc/main/java/org/variantsync/diffdetective/datasets/Repository.java Outdated
Comment threadsrc/main/java/org/variantsync/diffdetective/datasets/Repository.java Outdated
Comment threadsrc/main/java/org/variantsync/diffdetective/datasets/Repository.java Outdated
@pmbittnerpmbittner added Refactoring bm_work ibbem is paid for working on this labels Jun 11, 2025
ibbem added 5 commits June 11, 2025 18:52
The `GitDiffer` class doesn't own (in the sense that the actual truth of
these members lies in the `Repository` class) any of its members.
Furthermore, it just bundles the same members as `Repository`, just
leaving those out, that are unneeded. The constructor of `GitDiffer`
even extracts these members from `Repository` and doesn't even allow
them to be past any other way. Furthermore, most of the interesting
functions are already static anyways.
A different approach would be to move all of methods into `Repository`.
However, there seems to be no reason to override any of the actual
diffing methods and the drawback would be a huge `Repository` class
which would serve a second purpose.
@ibbem
ibbemforce-pushed the GitDiffer-refactorings branch from ad45412 to 58afdb5CompareJune 12, 2025 13:52
@ibbem
ibbem merged commit 7678170 into developJun 12, 2025
@ibbem
ibbem deleted the GitDiffer-refactorings branch June 12, 2025 14:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bm_workibbem is paid for working on thisRefactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ibbem@pmbittner