git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Partial Clone: Commands that could be problematic
@ 2018-03-07 13:57 Derrick Stolee
  0 siblings, 0 replies; only message in thread
From: Derrick Stolee @ 2018-03-07 13:57 UTC (permalink / raw)
  To: git

We discussed partial clone today during the contributor's summit. There 
were some concerns about some commands that would cause over-hydration 
of blobs that need server requests to resolve.

GVFS blocks "fsck", "gc", "prune", "repack", "submodule", and "worktree" 
[1]. I promised I would include this list. There are a few limitations 
on the arguments of the other commands, as seen in that code. These 
commands that are blocked are already handled in partial clone with the 
"promisor" pattern. The "worktree" limitation is only due to the 
file-system virtualization layer of GVFS.

We discussed commands like "git grep" that sometimes look at the working 
directory and sometimes crawls trees. That is a command that should be 
considered for batching object downloads, limiting the command to 
"hydrated" blobs, or limiting to a sparse checkout.

Thanks,

-Stolee

[1] 
https://github.com/Microsoft/GVFS/blob/2db0c030eb257beebf8e17f1c2ce72ffb166f533/GVFS/GVFS.Hooks/Program.cs#L120-L137


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-07 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 13:57 Partial Clone: Commands that could be problematic Derrick Stolee

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).