git

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkout

func Checkout(repo *gitlib.Repository, revision string) error

Checkout updates the repository worktree to the requested revision. The revision can be provided as a full reference (refs/... path), a branch name, a tag, or any revision string understood by go-git's ResolveRevision.

Types

type RepoSpec

type RepoSpec struct {
	Location string
	Revision string
	// contains filtered or unexported fields
}

func ParseRepoSpec

func ParseRepoSpec(raw string) (RepoSpec, error)

func (RepoSpec) CloneURL

func (s RepoSpec) CloneURL() string

func (RepoSpec) IsLocal

func (s RepoSpec) IsLocal() bool

Jump to

Keyboard shortcuts

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