import "github.com/egdaemon/eg/runtime/wasi/eggit"
Package eggit provides functionality around git and assumes that the git command is available.
func AutoClone(ctx context.Context, _ eg.Op) error
clone the repository specified by the eg environment variables into the working directory.
func Clone(ctx context.Context, uri, remote, commit string) error
clone a git repository from the given uri, remote and treeish.
func Commitish(ctx context.Context, treeish string) string
determine the commit hash for the given name.
func Pristine() eg.OpFn
ensures the workspace has not been modified. useful for detecting if there have been changes during the run.