Skip to content
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

Add various Match.merge(Match) functions #184

Open
lukaseder opened this issue Mar 20, 2023 · 0 comments
Open

Add various Match.merge(Match) functions #184

lukaseder opened this issue Mar 20, 2023 · 0 comments

Comments

@lukaseder
Copy link
Member

Maven has a set of specifications on how to merge / append two similar configuration elements, e.g.

<x>
  <a/>
  <b x="1"/>
</x>

<x>
  <b x="2"/>
  <c/>
</x>

The output of such a merge operation could be, for example:

<x>
  <a/>
  <!-- Preserve first on conflict -->
  <b x="1"/>
  <c/>
</x>

Or:

<x>
  <a/>
  <!-- Override first on conflict -->
  <b x="2"/>
  <c/>
</x>

Let's look at Maven and re-implement some of their algorithms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant