RepositoryProvider
A repository provider.
Repository.swift:82protocol RepositoryProvider : Cancellable
This protocol defines the lower level interface used to to access repositories. High-level clients should access repositories via a RepositoryManager
.
Supertypes
Requirements
Instance members
func copy(from: AbsolutePath, to: AbsolutePath
) throws Copies the repository at path
from
to pathto
.func createWorkingCopy(repository: RepositorySpecifier, sourcePath: AbsolutePath, at: AbsolutePath, editable: Bool
) throws -> WorkingCheckout Create a working copy from a managed repository.
func fetch(repository: RepositorySpecifier, to: AbsolutePath, progressHandler: FetchProgress.Handler?
) throws Fetch the complete repository at the given location to
path
.func isValidDirectory(AbsolutePath
) throws -> Bool Returns true if the directory is valid git location.
func isValidDirectory(AbsolutePath, for: RepositorySpecifier
) throws -> Bool Returns true if the directory is valid git location for the specified repository
func open(repository: RepositorySpecifier, at: AbsolutePath
) throws -> Repository Open the given repository.
func openWorkingCopy(at: AbsolutePath
) throws -> WorkingCheckout Open a working repository copy.
func workingCopyExists(at: AbsolutePath
) throws -> Bool Returns true if a working repository exists at
path