logoalt Hacker News

rs545837today at 5:29 AM1 replyview on HN

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.


Replies

gritzkotoday at 5:33 AM

This will not work for refactors. In fact, any other change will break the hash. I know because I used this approach for quite some time.

show 1 reply