git

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagModeAll     = "all"
	TagModeCurrent = "current"
)

Variables

This section is empty.

Functions

func DescribeTag

func DescribeTag(tagMode string, pattern string) (string, error)

func IsRepo

func IsRepo() bool

IsRepo returns true if current folder is a git repository

func Root

func Root() string

Types

type Commit

type Commit struct {
	SHA   string
	Title string
	Body  string
}

Commit is a commit with a hash, title (first line of the message), and body (rest of the message, not including the title).

func Changelog

func Changelog(tag string, dirs []string) ([]Commit, error)

func (Commit) String

func (c Commit) String() string

Jump to

Keyboard shortcuts

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