git

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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