utils

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(msg string, err error)

CheckIfError on an error panic with a formatted message.

func GetRepository

func GetRepository(repo string) *git.Repository

GetRepository returns a git.Repository from a path, with an empty string treated as ".".

func NewSignature

func NewSignature() *object.Signature

NewSignature create a minimal object.Signature for the current user.

func PublicKeys

func PublicKeys() *genfuncs.Result[*ssh.PublicKeys]

PublicKeys returns current users public keys.

func TagExists

func TagExists(r *git.Repository, tag string) bool

TagExists checks if a tag exists on a git.Repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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