git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 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)

Collects commit messages and a short diff summary since 'sinceSHA' (or last 10 commits if empty).

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. If extDetail is true, it includes per-commit detailed patches in addition to range patches.

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