First, X@@/main/5
is an extended pathname which you can really explore only in dynamic views.
Second, you can quickly access an older version of a file in Git:
git show REVISION:path/to/file
(with the path of the file being always from the root of the git repository)
And you can use git show for other usage (see the file as it is in another branch for instance)
See "How to retrieve a single file from specific revision in Git?" for more.
In term of dynamic exploration of a revision-based filesystem, the equivalent of hgfs for Git would be:
- gitfs FUSE-based filesystem for working with source trees stored in
git repositories.
figfs (the Filesystem Interface to Git FileSystem), which expands on gitfs.
The repository is presented as a filesystem which allows multiple versions and branches of the project code to be viewed simultaneously and without the need to reconfigure the user's workspace.
In order to provide a filesystem service, figfs uses the Filesystem in User space (FUSE)
From the work of Reilly Grant

A FUSE application allows a filesystem to be implemented as a user-space process.
An application’s request is passed through the VFS layer and into the FUSE driver which
sends the request to the user space filesystem daemon.
Figfs then accesses the Git repository through the normal filesystem and returns the resulting data to the application.