git

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(url string, dir string, args ...string) error

Clone runs git clone with the given URL and optional directory.

func CurrentBranch

func CurrentBranch() (string, error)

CurrentBranch returns the current git branch name.

Types

type RepoContext

type RepoContext struct {
	Workspace string
	RepoSlug  string
}

RepoContext holds a workspace and repo slug parsed from git remotes.

func DetectRepo

func DetectRepo() (*RepoContext, error)

DetectRepo attempts to detect the Bitbucket workspace and repo from git remotes.

Jump to

Keyboard shortcuts

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