gitref

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangedPathsBetweenRefs

func ChangedPathsBetweenRefs(ctx context.Context, repoPath, leftRef, rightRef string) ([]string, error)

func ChangedPathsFromRefToWorktree

func ChangedPathsFromRefToWorktree(ctx context.Context, repoPath, leftRef string) ([]string, error)

Types

type Request

type Request struct {
	Repo           string
	Ref            string
	ForbiddenRoots []string
}

type Result

type Result struct {
	Path     string
	Revision string
	Cleanup  func() error
}

func Snapshot

func Snapshot(ctx context.Context, request Request) (Result, error)

Jump to

Keyboard shortcuts

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