gitx

package
v1.7.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 8 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)

func VerifySignedObject added in v1.3.0

func VerifySignedObject(ctx context.Context, runner Runner, url, commit, fullRef, kind, allowedSigners, work string) error

VerifySignedObject fetches only the resolved object into a scratch repository and asks Git to verify it. Git remains the authority for SSH and OpenPGP signature formats.

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