gitrepository

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangedPaths

func ChangedPaths(ctx context.Context, path, before, after string, mode DiffMode) ([]string, error)

func ResolveTagCommit added in v0.28.0

func ResolveTagCommit(ctx context.Context, path, tag string) (string, error)

ResolveTagCommit validates a bare tag name and resolves the existing local tag, including annotated tags, to its full commit object ID. It never mutates refs or contacts a remote.

Types

type DiffMode

type DiffMode uint8
const (
	DiffDirect DiffMode = iota
	DiffMergeBase
)

Jump to

Keyboard shortcuts

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