logoalt Hacker News

50lotoday at 5:26 AM1 replyview on HN

If both sides refactor the same function into multiple smaller ones (extract method) or rename it, can Weave detect that as a structural refactor, or does it become “delete + add”? Any heuristics beyond name matching?


Replies

rs545837today at 5:29 AM

Yes, weave detects renames via structural_hash (AST-normalized hash that ignores identifier names). If both sides rename the same function, it matches by structure and merges cleanly.

show 1 reply