logoalt Hacker News

WalterGRtoday at 4:23 AM1 replyview on HN

It’s described as a “merge driver for Git”. Is it usable independently of git? Can I use it to diff arbitrary files?


Replies

rs545837today at 4:29 AM

We got asked this on the X thread too, when we went viral here https://x.com/rs545837/status/2021020365376671820. Your git doesn't change at all. Weave plugs in through git's merge driver interface (.gitattributes), so git still handles everything, it just calls weave for the content merge step instead of its default line-level algorithm. All your git commands, workflow, and history stay exactly the same.

For diffing arbitrary files outside git, we built sem (https://github.com/ataraxy-labs/sem) which does entity-level diffs. sem diff file1.py file2.py shows you which functions changed, were added, or deleted rather than line-level changes