git

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectChangeText

func CollectChangeText(sinceSHA string) (text, latestSHA string)

func CollectChangeTextAt

func CollectChangeTextAt(root string, sinceSHA string) (text, latestSHA string)

func CollectChangeTextAtWithLimit

func CollectChangeTextAtWithLimit(root string, sinceSHA string, limit int, extDetail bool) (text, latestSHA string)

CollectChangeTextAtWithLimit returns a combined text of commits and diffs between sinceSHA..HEAD. If sinceSHA is empty, it limits the history to the last 'limit' commits.

func DefaultBranch

func DefaultBranch() string

func DefaultBranchAt

func DefaultBranchAt(dir string) string

func GuessProvider

func GuessProvider(remote string) string

func IsGitRepo

func IsGitRepo(path string) bool

func OriginURL

func OriginURL() (string, error)

func OriginURLAt

func OriginURLAt(dir string) (string, error)

func RepoRoot

func RepoRoot() (string, error)

func RepoRootAt

func RepoRootAt(dir string) (string, error)

func ShortenRemote

func ShortenRemote(remote string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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