Documentation
¶
Overview ¶
Package gitclone is the first git-clone plumbing in this repo: a small shallow-clone helper for `sf plugin install <git-url>` (and, later, `sf pack install`). It shells out to the user's own `git`, so authentication is ambient — whatever ssh-agent, a credential helper, or ~/.netrc already trusts — sofia never reads, stores, or asks for a token itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneShallow ¶
CloneShallow clones url at ref into dst (which must not already exist) and returns the commit it landed on. ref is a branch or tag name; "" clones the remote's default branch. Commit SHAs are not supported — `git clone --branch` doesn't accept one, and resolving one would need a full clone.
Types ¶
This section is empty.