gitx

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeURL

func NormalizeURL(raw string) string

func Resolve

func Resolve(ctx context.Context, runner Runner, url, ref string) (string, error)

Types

type ExecRunner

type ExecRunner struct{ Timeout time.Duration }

func (ExecRunner) Run

func (r ExecRunner) Run(ctx context.Context, dir string, stdin []byte, args ...string) ([]byte, error)

type Resolution

type Resolution struct {
	Commit, FullRef, Kind string
	Ambiguous             bool
}

func ResolveDetailed

func ResolveDetailed(ctx context.Context, runner Runner, url, ref string) (Resolution, error)

type Runner

type Runner interface {
	Run(ctx context.Context, dir string, stdin []byte, args ...string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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