Adding support for git worktrees #82
Replies: 3 comments 3 replies
-
|
Hi @nlsantos! I agree that first-class support for worktrees would be great to have. I don't think we need to duplicate all the repo-oriented test cases for now; we can start by testing a few use cases that currently fail with worktrees. Can you describe the use case that you're solving in your fork?
|
Beta Was this translation helpful? Give feedback.
-
|
That last note is exactly how I usually have worktrees setup, i.e.:
When I try to open the repo using the latest Flatpak version, I get the following: I haven't had the chance to try my changes against the directory structure you've just outlined, but I will as soon as I get a bit more free time. |
Beta Was this translation helpful? Give feedback.
-
|
Okay, so just checked that my changes doesn't break GitFourchette when working with the directory structure you outlined, and it still loads. 😁 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, @jorio. I've forked your repo to add support for git worktrees here. The existing tests pass, but I'd like your feedback if you think this warrants additional test cases specifically for worktrees.
I think it would involve basically duplicating the existing repo-oriented test cases, but targeting a worktree instead. That would obviously incur additional maintenance load, but maybe there's a better way?
FWIW, I'm looking to increase the chance of this fork getting upstreamed, as I rely on worktrees heavily.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions