logoalt Hacker News

Rift: Better Alternative to Git Worktrees

45 pointsby f4n4tiXtoday at 6:53 AM20 commentsview on HN

Comments

ramon156today at 9:03 AM

Readme seems generated then minimized to the extreme, to a point where I cannot follow it anymore.

> The JavaScript init function initializes exactly `at`; Git-root selection and `--here` are CLI behavior.

What does this mean? Maybe I'm missing something

Also some of the stuff in this README seems like it should be in comments above/in their respected code blocks.

It also did not tell me why rift is a better alternative. Because it's fast? git worktrees are also fast.

show 1 reply
throwwwlltoday at 10:30 AM

Brought to you by the infamous author of yet another llm harness - will exfiltrate all your data, then feign ignorance:

https://github.com/anomalyco/opencode/issues/10416

zjy71055today at 10:50 AM

git worktree (or any COW snapshot like this) still leaves you reinstalling node_modules per tree and fighting over a dev server port. That's the actual cost, and none of these tools touch it. So I gave up on parallelizing inside one repo. I run agents across different projects — one repo each — and stay serial within a single project.

show 1 reply
sbinneetoday at 10:22 AM

Is it just an experimental tool by opencode team? If there is some article about this tool, I would love to read it. It’s not clear to me why I should use this instead of git worktree.

show 1 reply
pure-orangetoday at 10:34 AM

Currently it just sounds like an alternative to work trees, but with no explanation on how it’s better. Seems early stages, use of btrfs is cool, but unsure why I’d use this right now

show 1 reply
rippeltippeltoday at 9:29 AM

I find it hard to understand what it is about. Better in what way?

luckymatetoday at 9:38 AM

If that achieves quick COW copies of whole repo and works on Mac OS that's the solution I've been looking for last few weeks. Internets and Claude were insisting that such copies are possible only on Linux via OverlayFS. Seamless switching between unrelated features in the same repo – here I come!

show 1 reply
pikdumtoday at 8:56 AM

Neat! Would a similar approach work with ZFS instead of btrfs?

show 1 reply
rubnogueiratoday at 9:57 AM

Does it work well when we have gitsubmodules?

I had some issues regarding that.

singiamteltoday at 9:32 AM

Will this replace /warp in Opencode? Seeing as it's made by the same team

huflungdungtoday at 10:32 AM

[dead]

boundless88today at 8:59 AM

[dead]