diff

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangedFiles

func ChangedFiles(repoRoot, ref string) ([]string, error)

ChangedFiles returns file paths changed between ref and HEAD. Paths are relative to the repo root. Excludes deleted files (only Added, Copied, Modified, Renamed).

func FileAtRef

func FileAtRef(repoRoot, ref, path string) ([]byte, error)

FileAtRef reads a file's content at a specific git ref. path should be relative to the repo root.

func RepoRoot

func RepoRoot(path string) (string, error)

RepoRoot finds the git repository root from a given path.

func ValidateRef added in v0.1.1

func ValidateRef(ref string) error

ValidateRef checks that a git ref doesn't look like a flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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