News for hackers. Stuff that matters.
Re:Weave – A language aware merge algorithm based on entities by rs545837 on Wednesday March 04, 2026 @12:29AM (#47243467)
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.
Re:Weave – A language aware merge algorithm based on entities by gritzko on Wednesday March 04, 2026 @12:33AM (#47243491)
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.
Re:Weave – A language aware merge algorithm based on entities by rs545837 on Wednesday March 04, 2026 @12:41AM (#47243548)
Thanks a lot, I will test it out as you said, in the mean time, could you also open up an issue on the repo, so that it helps me and others to track the issue.
Re:Weave – A language aware merge algorithm based on entities by gritzko on Wednesday March 04, 2026 @12:46AM (#47243569)
I will ask Claude to open it, thanks!
Re:Weave – A language aware merge algorithm based on entities by rs545837 on Wednesday March 04, 2026 @12:52AM (#47243615)
Thanks, lemme know how it goes, I will review and we can discuss over the issue.