git

package
v0.0.0-...-7d3f580 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 8 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 {
	List []GitSha
	// contains filtered or unexported fields
}

func (*Branch) In

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

func (*Branch) Resolve

func (branch *Branch) Resolve() 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