billyfs

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package billyfs lets git2 read a repository from a go-billy filesystem. For example, a repository that go-git cloned into a memfs can be opened with git2.Open(billyfs.New(fs)), without first writing it to disk.

For a repository on disk, git2.PlainOpen confines access to its directory. Over osfs, use osfs.New(dir, osfs.WithBoundOS()), because the default follows symbolic links out of the directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fsys billy.Filesystem) git2.FS

New returns fsys as a git2.FS rooted at fsys's root. Use billy.Filesystem.Chroot to point it at a repository below the root.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL