git

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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