git_tag_next

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string) error

func IncrementTag added in v0.0.106

func IncrementTag(tag string) (string, error)

func ShowChildren

func ShowChildren(dir string, commit string) ([]string, error)

reference: https://git-scm.com/docs/pretty-formats %H: commit hash %P: parent commit hash

func ShowCurrentBranch

func ShowCurrentBranch(dir string) (string, error)

func ShowHeadCommitHash

func ShowHeadCommitHash(dir string) (string, error)

func ShowHeadTag

func ShowHeadTag(dir string) (string, error)

use `git describe --tags HEAD` to show the tag NOTE: though `git tag -l --points-at HEAD` works for tagged commits, we use `git describe --tags HEAD`, which works for both tagged and untagged commits

Types

type Options

type Options struct {
	Dir     string
	Show    bool
	Push    bool
	Verbose bool
}

Jump to

Keyboard shortcuts

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