git

package
v0.0.0-...-221d4ed Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLogging

func SetupLogging(logLevel slog.Level)

Types

type Branch

type Branch struct {
	// contains filtered or unexported fields
}

func (*Branch) In

func (branch *Branch) In(sha GitSha) bool

func (*Branch) Iterate

func (branch *Branch) Iterate(commit *Commit) iter.Seq2[GitSha, error]

func (*Branch) List

func (branch *Branch) List() ([]GitSha, error)

type Commit

type Commit struct {
	// contains filtered or unexported fields
}

type GitSha

type GitSha string

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(base string) *Repo

func (*Repo) Branch

func (repo *Repo) Branch(name string) (*Branch, error)

func (*Repo) Commit

func (repo *Repo) Commit(sha GitSha) (*Commit, error)

func (*Repo) Head

func (repo *Repo) Head() (GitSha, error)

func (*Repo) HeadBranch

func (repo *Repo) HeadBranch() (*Branch, error)

Jump to

Keyboard shortcuts

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