gitindexfs is a FUSE-filesystem that mounts the index of a git repositories read only, allowing direct access to the staged state of a git checkout through the filesystem.
Use an python3 virtual env:
$ python3 -mvenv venv $ ./venv/bin/pip install .
Try this in an git checkout:
Create a mountpoint and mount the current directory:
$ mkdir _index $ gitindexfs _index $ ls _index
Unmount with
$ fusermount -u _index
This program was initially based on legitfs by Marc Brinkmann (see https://github.com/mbr/legitfs/ )