-
Notifications
You must be signed in to change notification settings - Fork 17
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
PropertyRule always overwrites with THEIR or OUR even if there is no conflict on the given property #21
Comments
Both of your scenarios are working as intended. With the PropertyRule you define properties which should not be merged in the "usual" git way. You define it as that "our"/"their" ALWAYS wins, regardless of the base pom/source/target values. What you want here, is the normal git merge algorithm. If you want that, you should not include Property A and B in the PropertyRule yaml definition. |
Thanks for the quick response! |
This would be a new feature. Want you want is:
Due to the fact, that git only calls the merge driver if there IS a conflict your scenario only triggers if there is a minimum of 2 property changes. A solution could be a flag aka "conflictMode" e.G.:
If the "onlyWhenConflicting" flag is set, than the value of "strategy" is considered when there is a conflict. Otherwise we look at the Base/Their/Our pom value and take the value which would be taken if it would be a normal merge. |
Sounds like a good plan. I'll try and work out where the flag might fit in. |
If we have the scenario as follows:
Then we would expect;
Given that the basePom is available to PropertyRule it seems like this is a straightforward condition check. At the moment it looks like it simply overwrites the property regardless of whether it has changed.
The text was updated successfully, but these errors were encountered: