struct

Sherd::Git

Inherits Struct < Value < Object

Constructors

new(uri : URI, directory : Path, verbose : Bool = false)

Creates a new Git repositor by cloning it or updates it if already present.

Source

Instance methods

copy(version_or_rev : SemanticVersion | Revision, destination : Path)

Copy the repository to a given version.

Source
each_version

Yields each version tag, starting with v, for a given repository path.

Source
name
Source
repository_path
Source
show(version_or_rev : SemanticVersion | Object::Type, file : String) : String | Nil

Show a file at a revision. Returns nil if not present, or if the command failed.

Source

Nested types