gitfs

package module
v0.0.0-...-bc812af Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-git in-memory file mode tests

Tests permissions of files and directories fully in-memory using the go-git library.

Illustrates that a directory is returned as having permissions 644 unles it contains an executible file, in which case it is 755.

Replicating Results

Run go test -v

Implementaiton Notes

Includeded in ./testdata is a bare git repository repository which contains a root file and two subdirectories. The first, dir-a contains only normal files. dir-b contains both a normal file and an executable file.

This structure is used when illustrating that dir-a is represented in the billy.Filesystem as having perm 644, while dir-b reports 755.

This test repository is cloned in-memory using a local file:// URL.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url string) (billy.Filesystem, error)

Clone the repository into memory and return HEAD as a billy Filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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