git_tag_next

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []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