WorkingCheckout
An editable checkout of a repository (i.e. a working copy) on the local file system.
Repository.swift:238protocol WorkingCheckout
Requirements
Instance members
func areIgnored([AbsolutePath]
) throws -> [Bool] Returns true if the file at
path
is ignored bygit
func checkout(newBranch: String
) throws Create a new branch and checkout HEAD to it.
func checkout(revision: Revision
) throws Check out the given revision.
func checkout(tag: String
) throws Check out the given tag.
func exists(revision: Revision
) -> Bool Returns true if the given revision exists.
func fetch(
) throws Fetch and update the repository from its remote.
func getCurrentRevision(
) throws -> Revision Get the current revision.
func getTags(
) throws -> [String] Get the list of tags in the repository.
func hasUncommittedChanges(
) -> Bool This check for any modified state of the repository and returns true if there are uncommitted changes.
func hasUnpushedCommits(
) throws -> Bool Query whether the checkout has any commits which are not pushed to its remote.
func isAlternateObjectStoreValid(expected: AbsolutePath
) -> Bool Returns true if there is an alternative store in the checkout and it is valid.