Documentation
¶
Overview ¶
Package target provides a representation of local repositories, i.e. mirror targets.
Index ¶
Constants ¶
View Source
const ( // DefaultRemote is the name of the remote used for sources. DefaultRemote = "origin" // GitDirName is the name of the gitdir folder inside a repo's workdir. GitDirName = ".git" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Target ¶
type Target interface {
// Path to local gitdir (not working tree).
GitDir() fspath.Local
// WorkDir is the rep's working directory, or empty if the repo is bare.
WorkDir() fspath.Local
// LastUpdatedAt is the most recent time at which a remote reference was updated. May be zero.
RemoteLastUpdatedAt() time.Time
}
Target is a local copy of a repository (mirror target).
Click to show internal directories.
Click to hide internal directories.