Thread (19 messages) flat view 19 messages, 5 authors, 2019-04-08

Re: How de-duplicate similar repositories with alternates

From: Derrick Stolee <hidden>
Date: 2018-12-04 12:07:44

On 12/4/2018 2:06 AM, Jeff King wrote:
On Thu, Nov 29, 2018 at 10:55:49AM -0800, Stefan Beller wrote:
quoted
I view alternates as a historic artefact as the deduping
of objects client side can be done using worktrees, and on the
serverside - I think - most of the git hosters use namespaces
and put a fork network into the same repository and use pack islands.
By contrast, object storage is pretty easy to share. It scales
reasonably well, and the security model is much simpler due to the
immutable nature of object names.
And for the client side, we use alternates as an important way to scale 
VFS for Git to multiple enlistments on the same machine. VFS for Git 
manages a "shared object cache" (the alternate) that is updated in the 
background (including multi-pack-index and commit-graph).

Using worktrees for the same effect would add complications to the user 
interactions, not only when creating an enlistment but the fact that two 
enlistments cannot check out the same ref will confuse users.

Thanks,
-Stolee
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help