Documentation
¶
Index ¶
- func CheckProjectState(project *dw.Project) (needClone, needRemotes bool, err error)
- func CheckoutReference(repo *git.Repository, checkoutFrom *dw.CheckoutFrom) error
- func CloneProject(project *dw.Project) (*git.Repository, error)
- func GetClonePath(project *dw.Project) string
- func OpenRepo(project *dw.Project) (*git.Repository, error)
- func SetupRemotes(repo *git.Repository, project *dw.Project) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProjectState ¶
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 ¶
CloneProject clones the project specified to $PROJECTS_ROOT. Note: projects.Github is ignored as it will likely be removed soon.
func GetClonePath ¶
func OpenRepo ¶
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 ¶
SetupRemotes sets up a git remote in repo for each remote in project.Git.Remotes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.