modulepackage
5.0.0
Repository: https://github.com/go-git/go-git-fixtures.git
Documentation: pkg.go.dev
# README
go-git-fixtures
git repository fixtures used by go-git
Adding new Fixtures
Adding new pack fixtures
- Get the
.idx
and.pack
files from the repository:
git clone https://<repository>
cd <repository_name>
git checkout <REF>
git gc
ls .git/objects/pack/
- Copy them into
/data
. - Add a new entry in
fixtures.go
:
{
Tags: []string{"packfile", "<TAG_TO_REFER_TO>"},
PackfileHash: "<PACK_HASH>",
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EnsureIsBare overrides the config file with one where bare is true.
WithMemFS returns the option of using memfs for the fs created for Fixtures.
WithTargetDir returns the option of using an OS-based filesystem based on a target dir.
# Variables
No description provided by the author