gitops

package
v0.0.0-...-497c2fb Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Hash           string
	AuthorEmail    string
	CommitterEmail string
	Message        string
}

Commit holds the fields detectors care about from a git commit.

func GetCommit

func GetCommit(repoPath string, hash string) (Commit, error)

GetCommit reads a single commit by hash from the repository at repoPath.

func ListCommits

func ListCommits(repoPath string, commitRange string) ([]Commit, error)

ListCommits returns commits in the given range. The range format is "BASE..HEAD" where BASE and HEAD are commit hashes or ref names. If commitRange is empty, all commits reachable from HEAD are returned.

Jump to

Keyboard shortcuts

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