internal

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: EPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProjectState

func CheckProjectState(project *dw.Project) (needClone, needRemotes bool, err error)

func CheckoutReference

func CheckoutReference(repo *git.Repository, checkoutFrom *dw.CheckoutFrom) error

CheckoutReference sets the current HEAD in repo to point at the revision and remote referenced by checkoutFrom

func CloneProject

func CloneProject(project *dw.Project) (*git.Repository, error)

CloneProject clones the project specified to $PROJECTS_ROOT. Note: projects.Github is ignored as it will likely be removed soon.

func GetClonePath

func GetClonePath(project *dw.Project) string

func OpenRepo

func OpenRepo(project *dw.Project) (*git.Repository, error)

OpenRepo returns the git repo on disk described by the devworkspace Project. If the repo does not currently exist, returns nil. Returns an error if an unexpected error occurs opening the git repo.

func SetupRemotes

func SetupRemotes(repo *git.Repository, project *dw.Project) error

SetupRemotes sets up a git remote in repo for each remote in project.Git.Remotes

Types

This section is empty.

Jump to

Keyboard shortcuts

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