File system view of git repositories
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install repofsRepoFS
RepoFS represents the Git version control system as a virtual file system where all commits and their contents can be traversed concurrently in a read-only manner using shell commands.
Read the complete description and methodology on SoftwareX
You can cite RepoFS as follows. Vitalis Salis and Diomidis Spinellis. RepoFS: File system view of Git repositories. SoftwareX, Volume 9, 2019, Pages 288-292, ISSN 2352-7110, https://doi.org/10.1016/j.softx.2019.03.007.
Installation
RepoFS requires Python >= 3.6 and an installation of libgit2@1.1.0 and fuse. Note: If your vendor doesn't provide libgit2 v1.1.0 you can manually build and install it from source, following the instructions outlined below.
Debian & Ubuntu
~ ❯❯❯ apt install libffi-dev libgit2-dev=1.1.0 fuse python3-pip
~ ❯❯❯ pip3 install repofs
Arch Linux
Available in the AUR: https://aur.archlinux.org/packages/repofs-git/.
Using pacaur:
~ ❯❯❯ pacaur -S repofs-git
OSx
~ ❯❯❯ brew install libgit2 fuse python3
~ ❯❯❯ pip3 install repofs
Manual installation of libgit2
~ ❯❯❯ wget https://github.com/libgit2/libgit2/archive/v1.1.0.tar.gz
~ ❯❯❯ tar xzf v1.1.0.tar.gz
~ ❯❯❯ cd libgit2-1.1.0/
~ ❯❯❯ cmake .
~ ❯❯❯ make
~ ❯❯❯ sudo make install
~ ❯❯❯ sudo ldconfig
Usage
~ ❯❯❯ repofs -h
usage: repofs [-h] [--hash-trees] [--no-ref-symlinks] [--no-cache] repo mount
positional arguments:
repo Git repository to be processed.
mount Path where the FileSystem will be mounted.If it doesn't
exist it is created and if it exists and contains files
RepoFS exits.
optional arguments:
-h, --help show this help message and exit
--hash-trees Store 256 entries (first two digits) at each levelof
commits-by-hash for the first three levels.
--no-ref-symlinks Do not create symlinks for commits of refs.
--no-cache Do not use the cache