git_tag_next

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 5 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 added in v0.0.18

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 added in v0.0.16

func ShowCurrentBranch(dir string) (string, error)

func ShowHeadCommitHash added in v0.0.19

func ShowHeadCommitHash(dir string) (string, error)

func ShowHeadTag added in v0.0.12

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 {
	Show bool
	Push bool
}

Jump to

Keyboard shortcuts

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