GitFs: Building a file system in Python
summary
GitFs is a FUSE filesystem written in Python that exposes a repository as a readable current snapshot plus a timestamped history and is used in production for SFTP-backed editorial workflows. It uses pygit2 and fusepy, implements a commit queue with sync and fetch worker threads to batch writes, resolves conflicts with an always-accept-mine merge strategy, and adds three caches to cut costly operations after discovering that listing history on a repo with 50–70k commits took 34 minutes and naive caching blew memory to ~2GB.
AI-written summary · about
