Add gitfs-multifs, to serve multiple workspaces:

 go install github.com/google/gitfs/cmd/gitfs-{multifs,expand-manifest}
 gitfs-expand-manifest --gitiles https://android.googlesource.com/ > /tmp/m.xml
 mkdir /tmp/mnt
 gitfs-multifs -cache /tmp/cache -gitiles https://android.googlesource.com/  /tmp/mnt &
 ln -s /tmp/m.xml /tmp/mnt/config/ws

Change-Id: I31ca65c3817d8b15419d75bdef0e2ec4a8091143
4 files changed
tree: 55c5cb3fd2028e86d25075816877b5db2098924a
  1. cache/
  2. cmd/
  3. fs/
  4. gitiles/
  5. manifest/
  6. .gitignore
  7. CONTRIBUTING
  8. LICENSE
  9. README.md
README.md

This is a FUSE filesystem that provides light-weight, read-only checkouts of Android.

How to use

To start,

go install github.com/google/gitfs/cmd/gitfs-{multifs,expand-manifest}
gitfs-expand-manifest --gitiles https://android.googlesource.com/ \
   > /tmp/m.xml
mkdir /tmp/mnt
gitfs-multifs -cache /tmp/cache -gitiles https://android.googlesource.com/  /tmp/mnt &

then, in another terminal, execute

ln -s /tmp/m.xml /tmp/mnt/config/ws

To create a workspace “ws” corresponding to the manifest in m.xml.

DISCLAIMER

This is not an official Google product.