Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Jul 6, 2023

Provides a simple API to collect information that is necessary for content-aware merges.

The base for that information is already available via the Conflicts returned in a MergeResponse. The approach is based on information from the merge-request and merge-response. It collects the conflicting contents from the merge-base using a Nessie-API "get-contents" call and then uses Nessie's diff-operations to identify and filter the conflicting contents from the diffs of merge-base-to-merge-source and merge-base-to-merge-target. The content information is aggregated ("grouped" by content-ID) and returned as a Java Stream via the introduced API.

This change does not implement any content-aware merge operation.

This is a pure Nessie-Java-API/client change, no REST API change.

@snazy snazy force-pushed the merge-response-inspector branch from dab6be1 to 3a1a309 Compare July 17, 2023 10:01
Provides a simple API to collect information that is necessary for content-aware merges.

The base for that information is already available via the `Conflict`s returned in a `MergeResponse`. The approach is based on information from the merge-request and merge-response. It collects the conflicting contents from the _merge-base_ using a Nessie-API "get-contents" call and then uses Nessie's diff-operations to identify and filter the conflicting contents from the diffs of _merge-base_-to-_merge-source_ and _merge-base_-to-_merge-target_. The content information is aggregated ("grouped" by content-ID) and returned as a Java `Stream` via the introduced API.

This change does not implement any content-aware merge operation.

This is a pure Nessie-Java-API/client change, no REST API change.
@snazy snazy force-pushed the merge-response-inspector branch from 3a1a309 to 45c109c Compare July 20, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant