git

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package git provides git repository operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTags added in v1.0.1

func FetchTags() error

FetchTags fetches tags from the remote so locally-missing tags (e.g. tags created by CI) are available for git log.

func FindRepoRoot

func FindRepoRoot() (string, error)

FindRepoRoot walks up from the current directory to find the git repository root.

func GetCommitDetails

func GetCommitDetails(from, to string) (string, error)

GetCommitDetails returns detailed commit information between two refs. Each commit includes: full hash, full message (header + body), and list of changed files.

func GetCommitDetailsFromRoot

func GetCommitDetailsFromRoot(to string) (string, error)

GetCommitDetailsFromRoot returns detailed commit information from root to the given ref.

func TagExists

func TagExists(tag string) bool

TagExists checks if a tag exists in the repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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