Versions in this module Expand all Collapse all v1 v1.5.11 Jun 3, 2026 Changes in this version + func CreateEmptyCommit(repo *gogit.Repository) error + func ExtractTar(t *testing.T, tarfile string, dir string) + func OpenGitRepositoryFromArchive(t *testing.T, tarfile, tempdir string) *gogit.Repository + func OpenGitRepositoryFromArchiveWithWorktree(t *testing.T, tarfile, path string) *gogit.Repository + func ServeExistingRepository(t *testing.T, repo *gogit.Repository) string + func ServeGitRepository(t *testing.T, tarfile, tempdir string) (*gogit.Repository, string) + type DynamicRepos struct + func NewDynamicRepos(baseDir string, gitRepoOptions []GitRepoOption) *DynamicRepos + func (r *DynamicRepos) FindRepo(ctx context.Context, id string) (*Repo, error) + type GitHash = plumbing.Hash + type GitRepoOption interface + func WithBasicAuth(username, password string) GitRepoOption + type GitServer struct + func NewGitServer(repos Repos, opts ...GitServerOption) (*GitServer, error) + func (s *GitServer) ListenAndServe(ctx context.Context, listen string, addressChannel chan<- net.Addr) error + func (s *GitServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + type GitServerOption interface + type PacketLineWriter struct + func NewPacketLineWriter(w io.Writer) *PacketLineWriter + func (w *PacketLineWriter) Flush() error + func (w *PacketLineWriter) WriteLine(s string) + func (w *PacketLineWriter) WriteZeroPacketLine() + type RefUpdate struct + From GitHash + Ref string + To GitHash + type Repo struct + func NewRepo(gogit *gogit.Repository, options ...GitRepoOption) (*Repo, error) + type Repos interface + FindRepo func(ctx context.Context, id string) (*Repo, error) + type StaticRepos struct + func NewStaticRepos() *StaticRepos + func (r *StaticRepos) Add(id string, repo *Repo) error + func (r *StaticRepos) FindRepo(ctx context.Context, id string) (*Repo, error) v1.5.10-test Jun 3, 2026