git

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTag

func CreateTag(dir, tag string) error

func GetGitAuth

func GetGitAuth() *gitHttp.BasicAuth

func GetGitAuthorSignature

func GetGitAuthorSignature() *object.Signature

func GetVersionFromTag

func GetVersionFromTag(dir string, index int) (*version.Version, error)

GetVersionFromTag sorts git tags and returns the provided index e.g. index=1 will return the most recent tag

func PushTag

func PushTag(dir, tagName string) error

func SetGitSignOptions

func SetGitSignOptions(repoPath string) error

Types

type URL

type URL struct {
	Scheme       string
	Host         string
	Organisation string
	Name         string
	RawURL       string
}

func GetRemoteURL

func GetRemoteURL(repo *git.Repository) (*URL, error)

func GetRemoteURLFromDir

func GetRemoteURLFromDir(dir string) (*URL, error)

func ParseGitURL

func ParseGitURL(rawURL string) (*URL, error)

ParseGitURL returns owner, repo name, errors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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