git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(message string) error

func GetCommitsBetween added in v0.1.1

func GetCommitsBetween(from, to string) ([]string, error)

func GetLatestTag added in v0.1.1

func GetLatestTag() (string, error)

func GetPreviousTag added in v0.1.1

func GetPreviousTag(tag string) (string, error)

func HasCommits

func HasCommits() bool

func HooksPath

func HooksPath() (string, error)

func IsRepo

func IsRepo() bool

func StagedDiff

func StagedDiff() (string, error)

func StagedDiffForFile

func StagedDiffForFile(file string) (string, error)

func StagedDiffStat

func StagedDiffStat() (string, error)

func StagedFiles

func StagedFiles() ([]string, error)

Types

type FileStat

type FileStat struct {
	Added   string
	Removed string
	File    string
}

func StagedNumStat

func StagedNumStat() ([]FileStat, error)

Jump to

Keyboard shortcuts

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