Help us shape the future of Go! Take the 2026 Go Developer Survey

git_remote

package
v0.57.15 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package git_remote implements a Git remote helper that stores refs and objects in a Space's Git Repo object.

Git runs git-remote-spacewave for a remote whose URL uses the spacewave scheme, sets GIT_DIR to the local repository, and exchanges line commands on the helper's stdin and stdout. See https://git-scm.com/docs/gitremote-helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper serves the Git remote helper protocol for one Space Repo object.

func NewHelper

func NewHelper(engine world.Engine, objectKey, gitDir string) *Helper

NewHelper builds a Helper that moves refs and objects between the local repository at gitDir and the Repo object at objectKey.

func (*Helper) Pushed

func (h *Helper) Pushed() bool

Pushed reports whether Run changed the Repo, so the caller can wait for the Space to sync before Git reports the push complete.

func (*Helper) Run

func (h *Helper) Run(ctx context.Context, in io.Reader, out io.Writer) error

Run serves commands from in until Git closes it or sends a blank line.

Jump to

Keyboard shortcuts

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