Also insert trees into cache if they came from a Git repository.

If Git repositories are on spinning storage, the trees are relatively
expensive to construct.

Change-Id: I49680a5b254f0f2b0c0190e439c512ce2625a3fb
3 files changed
tree: 5de4966330d964fca439da95c5bf2d6bfd9a54da
  1. cache/
  2. cmd/
  3. cookie/
  4. docs/
  5. fs/
  6. gitiles/
  7. manifest/
  8. populate/
  9. .gitignore
  10. all.bash
  11. android.json
  12. CONTRIBUTING
  13. LICENSE
  14. README.md
README.md

SlothFS is a FUSE filesystem that provides light-weight, lazily downloaded, read-only checkouts of manifest-based Git projects. It is intended for use with Android.

How to use

To start the file system:

go install github.com/google/slothfs/cmd/slothfs-multifs
mkdir /tmp/mnt
slothfs-multifs /tmp/mnt &

To create a workspace “ws” corresponding to the latest manifest version

go install github.com/google/slothfs/cmd/slothfs-deref-manifest
slothfs-deref-manifest > /tmp/m.xml
ln -s /tmp/m.xml /tmp/mnt/config/ws

More details can be found in the manual.

DISCLAIMER

This is not an official Google product.