class

Git2::Repository

Inherits Reference < Object

Constructors

init(path : Path, bare = false) : Repository
Source

Instance methods

bare?

Check if a repository is bare

Source
config
Source
empty?

Check if a repository is empty

An empty repository has just been initialized and contains no references apart from HEAD, which must be pointing to the unborn master branch.

Source
finalize
Source
index

Get the Index file for this repository

If a custom index has not been set, the default index for the repository will be returned (the one located in .git/index).

Source
shallow?

Determine if the repository was a shallow clone

Source
signature
Source
state
Source
to_unsafe
Source
worktree?

Check if a repository is a linked work tree

Source