git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Uninitialized submodules as symlinks
@ 2016-10-07 18:17 David Turner
  2016-10-07 18:56 ` Stefan Beller
  2016-10-13 16:10 ` Heiko Voigt
  0 siblings, 2 replies; 10+ messages in thread
From: David Turner @ 2016-10-07 18:17 UTC (permalink / raw)
  To: git@vger.kernel.org

Presently, uninitialized submodules are materialized in the working tree as empty directories.  We would like to consider having them be symlinks.  Specifically, we'd like them to be symlinks into a FUSE filesystem which retrieves files on demand.

We've actually already got a FUSE filesystem written, but we use a different (semi-manual) means to connect it to the initialized submodules.  We hope to release this FUSE filesystem as free software at some point soon, but we do not yet have a fixed schedule for doing so.  Having to run a command to create the symlink-based "union" filesystem is not optimal (since we have to re-run it every time we initialize or deinitialize a submodule).

But if the uninitialized submodules could be symlinks into the FUSE filesystem, we wouldn't have this problem.  This solution isn't necessarily FUSE-specific -- perhaps someone would want copies of the same submodule in multiple repos, and would want to save disk space by having all copies point to the same place.  So the symlinks would be configured by a per-submodule config variable.

Naturally, this would require some changes to code that examines the working tree -- git status, git diff, etc.  They would have to report "unchanged" for submodules which were still symlinks to the configured location.  I have not yet looked at the implementation details beyond this.

Does this idea make any sense?  If I were to implement it (probably in a few months, but no official timeline yet), would patches be considered?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-17 15:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 18:17 Uninitialized submodules as symlinks David Turner
2016-10-07 18:56 ` Stefan Beller
2016-10-07 19:59   ` David Turner
2016-10-17  9:45     ` Duy Nguyen
2016-10-17 15:12       ` David Turner
2016-10-13 16:10 ` Heiko Voigt
2016-10-13 19:35   ` Kevin Daudt
2016-10-14 16:48     ` Junio C Hamano
2016-10-17  9:28       ` Heiko Voigt
2016-10-17 15:11   ` David Turner

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 NNTP newsgroup(s).