git

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ref

type Ref string

Ref represents a git reference string (tag, branch name, or commit SHA).

func (Ref) IsFullSHA

func (r Ref) IsFullSHA() bool

IsFullSHA reports whether the ref is a full 40-character lowercase hexadecimal commit SHA.

func (Ref) IsValid

func (r Ref) IsValid() bool

IsValid reports whether the ref is a valid git reference name according to the rules in git-check-ref-format(1).

Jump to

Keyboard shortcuts

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