Mount Git repo to view commits and branches as files
github.com·2d·
Discuss: Hacker News
🌳Jujutsu
Preview
Report Post

GitSnapFS

GitSnapFS exposes snapshots of a Git repository as a read-only filesystem designed for safe inspection, automated audits, and tooling integration.

Highlights

  • /commits/<full-hex-commit-id> presents the tree for an individual commit.
  • branches/, tags/, and HEAD materialise as symlinks into the matching commit snapshot.
  • Synthetic inodes are derived from Git object IDs so links remain stable across views.
  • The filesystem is strictly read-only and answers requests lazily; updates in the underlying repo are surfaced without a pre-scan.
  • Hot upgrades keep the mount active by duping the FUSE file descriptor across an exec.
  • Directory listings leave . and .. to the kernel, letting path caches stay in userspace.
  • We leverage the kernel’s zero-message…

Similar Posts

Loading similar posts...