git

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(dir string, repoURL string) error

func GetRepoName

func GetRepoName(repoURL string) (string, error)

func HeadInfo added in v0.2.3

func HeadInfo(dir string) (sha, branch string)

HeadInfo reports the working directory's current commit SHA and branch name ("HEAD" when detached). Both come back empty when dir isn't a git repository or git isn't installed — callers treat git context as best-effort metadata.

func SetupLocal

func SetupLocal(remote string) error

func Update

func Update(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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