Git packs so well that it's very common for the unpacked source to be much larger than the history in .git. The linux-kernel archive is a prime example. I've also started using git-svn (awesome tool, BTW) and have discovered the impressive disk space costs associated with SVN's tags/ directories if I actually want to download the full history. If you have multiple cloned repositories on one system, git can share the history, but the working directory problem is exacerbated. (Disk is cheap, but the RAM to cache it is limited.) This got me thinking... Wouldn't it be nice if there were a way to tell git-update-index and git-checkout index that certain directories are not in the working directory, but don't worry. Just pretend they exist and match the index. Then I could mark much of arch/* as "don't bother" and save a pile of disk space per working directory. This would be a little bit annoying if I tried to merge two branches with conflicts in a "masked" part of the tree (well, it would create the index entries, but I'd have no way to resolve the conflict), but I think that's a matter of Don't Do That. A slightly more flexible (but confusing?) option would be to mark parts of the tree as "don't commit deletion". That is, within named sections of the tree: - Missing files in the working directory are assumed unchanged from the index. (Perhaps unless you explicitly git-add them.) - Files that don't already exist aren't checked out from the index. (Unless explicitly named in a git-checkout operation.) ... but you could have a "selective checkout" in some directories. E.g. in the kernel, you could include a stub Makefile, but omit the .c files for file systems you don't need. (And if we're really sneaky, teach the linux kernel Makefile how to check out code when features are enabled. That would address a longstanding complaint about the size of the linux kernel source tree. It's a bit trickier than default make rules for getting <foo> from RCS/foo,v because got doesn't provide a signle file that make(1) can look for, but something's probably possible.) That could also handle merges... the "check out the file with conflict markers" operation could be unconditional if there are conflicts. The multiple-git-repositories issue could be handled by hard-linking the working directory files together (assuming your editor knows how to unlink when changing them) using information easily available in the index files. Git could even detect and complain if a two files that mismatched their index entries were hard-linked together. But for the git-svn case where you have a tags/ directory full of old copies of files, hard-linking is of limited use if most files changed between tags. Here, just being able to say "don't bother populating that part of the working directory" would be very nice. Does this make sense to anyone else? - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html