Re: The design of refs backends, linked worktrees and submodules

2017-02-07 Thread Duy Nguyen
On Thu, Jan 19, 2017 at 6:55 PM, Duy Nguyen wrote: > I've started working on fixing the "git gc" issue with multiple > worktrees, which brings me back to this. Just some thoughts. Comments > are really appreciated. > > In the current code, files backend has special cases for both > submodules (exp

Re: The design of refs backends, linked worktrees and submodules

2017-01-20 Thread Duy Nguyen
On Thu, Jan 19, 2017 at 8:30 PM, Michael Haggerty wrote: > I kindof think that it would have been a better design to store the > references for all linked worktrees in the main repository's ref-store. > For example, the "bisect" refs for a worktree named "" could have > been stored under "refs/wor

Re: The design of refs backends, linked worktrees and submodules

2017-01-19 Thread Johannes Schindelin
Hi, On Thu, 19 Jan 2017, Michael Haggerty wrote: > On 01/19/2017 12:55 PM, Duy Nguyen wrote: > > I've started working on fixing the "git gc" issue with multiple > > worktrees, which brings me back to this. Just some thoughts. Comments > > are really appreciated. > > > > In the current code, file

Re: The design of refs backends, linked worktrees and submodules

2017-01-19 Thread Junio C Hamano
Duy Nguyen writes: > ... A bit worried about transactions though, > because I think per-repo and per-worktree updates will be separated in > two transactions. But that's probably ok because future backends, like > lmdb, will have to go through the same route anyway. If we have per-worktree ref-s

Re: The design of refs backends, linked worktrees and submodules

2017-01-19 Thread Michael Haggerty
On 01/19/2017 12:55 PM, Duy Nguyen wrote: > I've started working on fixing the "git gc" issue with multiple > worktrees, which brings me back to this. Just some thoughts. Comments > are really appreciated. > > In the current code, files backend has special cases for both > submodules (explicitly)

The design of refs backends, linked worktrees and submodules

2017-01-19 Thread Duy Nguyen
I've started working on fixing the "git gc" issue with multiple worktrees, which brings me back to this. Just some thoughts. Comments are really appreciated. In the current code, files backend has special cases for both submodules (explicitly) and linked worktrees (hidden behind git_path). But if