git

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedFiles

func GetChangedFiles(since string) ([]string, error)

GetChangedFiles returns a list of files changed between the given tag/commit and HEAD.

func GetCommits

func GetCommits(since string) ([]string, error)

GetCommits returns a list of commit messages between the given tag/commit and HEAD.

func GetDiff added in v0.7.3

func GetDiff(since string) (string, error)

GetDiff returns git diff output between the given tag/commit and HEAD. Use --unified=3 for standard context.

func GetDiffStats added in v0.7.3

func GetDiffStats(since string) (string, error)

GetDiffStats returns git diff --stat output between the given tag/commit and HEAD.

func GetLastTag

func GetLastTag() (string, error)

GetLastTag retrieves the most recent git tag. Returns "HEAD~10" as fallback if no tags are found.

func IsGitRepository

func IsGitRepository() bool

IsGitRepository checks if the current directory is a git repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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