gitutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(repoURL, ref string) (string, string, error)

CloneRepo clones a Git repository to a temporary directory. Returns the path to the cloned repo (inside a unique temp dir) and the repo name.

func IsGitURL

func IsGitURL(path string) bool

IsGitURL checks if the input string looks like a git URL or SCP-like path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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