Skip to content

fix(web): diffs that turn a file into a folder no longer crash the file tree - #50

Merged
r4iju merged 1 commit into
mainfrom
fix/diff-tree-file-dir-collision
Oct 16, 2026
Merged

r4iju merged 1 commit into
mainfrom
fix/diff-tree-file-dir-collision

Conversation

@r4iju

@r4iju r4iju commented Oct 16, 2026

Copy link
Copy Markdown
Owner

A diff that deletes a file (often a symlink) and adds files under the same
path as a folder handed Pierre's tree both a file and a directory at one
path, and resetPaths threw "Path collides with an existing file".

The tree now leaves out the replaced file; the folder's files carry the
change, and the diff body still shows the deletion.

…le tree

A diff that deletes a file (often a symlink) and adds files under the same
path as a folder handed Pierre's tree both a file and a directory at one
path, and resetPaths threw "Path collides with an existing file".

The tree now leaves out the replaced file; the folder's files carry the
change, and the diff body still shows the deletion.
@r4iju
r4iju merged commit ab83159 into main Oct 16, 2026
3 of 18 checks passed
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant