Jesse Duffield
873a68949e
Centralise logic for obtaining repo paths
...
There are quite a few paths you might want to get e.g. the repo's path, the worktree's path,
the repo's git dir path, the worktree's git dir path. I want these all obtained once and
then used when needed rather than having to have IO whenever we need them. This is not so
much about reducing time spent on IO as it is about not having to care about errors every time
we want a path.
2023-07-29 17:36:18 +10:00
Jesse Duffield
f8c18d074a
Remove IO logic from presentation code for worktrees
...
We're doing all the IO in our workers loader method so that we don't need to do any
in our presentation code
2023-07-29 17:36:18 +10:00
Jesse Duffield
0eac6483ec
Add worktree tests for removing/detaching
2023-07-29 17:36:18 +10:00
Jesse Duffield
71070827f2
Add worktree integration tests
2023-07-29 17:36:18 +10:00
Jesse Duffield
d764f35c5d
Fix unit tests
2023-07-29 17:36:18 +10:00
Jesse Duffield
514c2f0897
Fix tests
...
Going and fixing up some submodule tests which were broken by bad assumptions with worktree code
2023-07-29 17:36:18 +10:00
Jesse Duffield
af5ec473f3
Safer fetching of linked worktree paths
2023-07-29 17:36:18 +10:00
Jesse Duffield
0cef35324f
Properly render worktrees in files panel
2023-07-29 17:36:18 +10:00
Jesse Duffield
1638354474
Better logic for knowing which repo we're in
2023-07-29 17:36:18 +10:00
Jesse Duffield
b6d5542b35
Associate branches with worktrees even when mid-rebase
2023-07-29 17:36:18 +10:00
Jesse Duffield
500c0eafb9
Support creating worktrees from refs
2023-07-29 17:36:17 +10:00
Jesse Duffield
002e4eedf5
Log when directory is changed
2023-07-29 17:36:17 +10:00
Jesse Duffield
a991525391
Handle deleting branch attached to worktree
2023-07-29 17:36:17 +10:00
Jesse Duffield
ad017f3bb8
Move current worktree to top of list
2023-07-29 17:36:17 +10:00
Jesse Duffield
dbd32f63dd
Improve name handling
2023-07-29 17:36:17 +10:00
Joel Baranick
b22f936522
Address PR comments
2023-07-29 17:36:17 +10:00
Joel Baranick
53e408f156
Basic support for adding a worktree
2023-07-29 17:36:17 +10:00
Joel Baranick
2f156b3438
Support for deleting a worktree
2023-07-29 17:36:17 +10:00