git

package
v0.0.0-...-a2ab90e Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangedFilesFrom

func ChangedFilesFrom(ctx context.Context, ref string) ([]string, error)

ChangedFilesFrom returns the list of file paths that changed, comparing the current git repo against a base Git ref (commit SHA, tag, branch).

func FirstCommitTime

func FirstCommitTime(ctx context.Context, path string) (time.Time, error)

FirstCommitTime returns the author time of the commit that first added files at the given path. The path should be relative to the git repository root. Returns a zero time.Time if no commits are found (e.g. the path is uncommitted).

Types

This section is empty.

Jump to

Keyboard shortcuts

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