-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused merge methods #9702
Conversation
2653177
to
759f6f8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9702 +/- ##
===========================================
- Coverage 64.84% 64.77% -0.08%
===========================================
Files 335 335
Lines 41087 41007 -80
===========================================
- Hits 26642 26559 -83
- Misses 14445 14448 +3 ☔ View full report in Codecov by Sentry. |
Agreed, there is no need for the other strategies |
759f6f8
to
439bdd5
Compare
KeepNewer, // merge history | ||
Synchronize, // merge history keeping most recent as top entry and applying deletions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is actually the difference between these two?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only difference. In a future PR, I think I will remove the MergeMode
completely, and instead add a Merger
option called mergeDeletions
or synchronizeDeletions
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree!
439bdd5
to
72285be
Compare
074fc34
to
7c5206d
Compare
I'll look to merge this soon along with the other code cleanups. Need to chop down these PR's |
7c5206d
to
3a87905
Compare
3a87905
to
c25001d
Compare
We only use two merge methods:
Synchronize
andKeepNewer
. Removing the other unused merge methods simplifies the merge code a lot. In a future PR, I will also remove the field from theGroup
class, and only allow overwriting the default on theMerger
object.This is not a breaking change since the
Group
field was only changed from the unit tests.Testing strategy
unit tests are still passing
Type of change