Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
Clone clones a git repository to the target directory. If branch is non-empty, it checks out that branch. If tag is non-empty, it checks out that tag. If depth > 0, a shallow clone is performed. Progress output goes to stderr.
func ClonePath ¶
ClonePath returns the local directory path where a git workspace should be cloned. Follows Go module conventions: ~/.cache/flow/git-workspaces/<host>/<path>
func EnsureInstalled ¶
func EnsureInstalled() error
EnsureInstalled checks that the git binary is available on PATH.
func IsGitURL ¶
IsGitURL returns true if the given string looks like a Git remote URL (HTTPS or SSH).
func Pull ¶
Pull fetches and pulls the latest changes for a git repository. If the workspace was cloned with a specific branch, it pulls that branch. If it was cloned with a tag, it fetches tags and checks out the tag.
Types ¶
This section is empty.