Skip to content

[lookup-by-path] Add getFirstDifferenceInCommonNodes, tree#5223

Merged
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:git-first-difference
May 7, 2025
Merged

[lookup-by-path] Add getFirstDifferenceInCommonNodes, tree#5223
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:git-first-difference

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Adds an API getFirstDifferenceInCommonNodes for comparing two LookupByPath instances of the same type.

Details

Exposes a readonly tree property on LookupByPath that can be used for manual tree traversal.
Adds a recursive getFirstDifferenceInCommonNodes API that looks for value mismatches in shared nodes between two subtrees.

How it was tested

Added unit tests.

Impacted documentation

Documentation for this library.

@dmichon-msft dmichon-msft enabled auto-merge (squash) May 7, 2025 22:59
@dmichon-msft dmichon-msft merged commit 21d9e24 into microsoft:main May 7, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage May 7, 2025
@dmichon-msft dmichon-msft deleted the git-first-difference branch May 7, 2025 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants