6 ms·
One thing I've desperately wanted from git worktrees is to use reflinking in some way to lower the cost of copies. I just found https://github.com/josharian/gi
by BoingBoomTschak 6d ago
One thing I've desperately wanted from git worktrees is to use reflinking in some way to lower the cost of copies.
I just found https://github.com/josharian/git-cow-worktree https://github.com/josharian/git-cow-worktree that doesn't inspire confidence.
- masklinn 6d agoYou could try proposing a worktree copy command on the mailing list. Worktrees are currently independent and work off of repositories which may have no existing worktree / working copy at all, let alone one it makes sense to start from, so there is bothing to copy but for dodgy heuristics.
- ajpaon 6d agoI recently open sourced the worktree wrapper we use at my workplace, which uses reflinking in this way. https://github.com/Applied-Intuition-Open-Source/stol https://github.com/Applied-Intuition-Open-Source/stol