Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.27.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGit

func RunGit(dir string, args ...string) (string, error)

Types

type Info

type Info struct {
	URL          string
	TopLevelPath string
	SHA          string
	Branch       string
}

func GetGitInfo

func GetGitInfo(dir string) *Info

GetGitInfo try to detect the current remote for this URL return the origin url transformed and the topdir.

Jump to

Keyboard shortcuts

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