Skip to content

class Grits::Repo
inherits Reference #

Included modules

Grits::Mixins::Pointable Grits::Mixins::Repo Grits::Mixins::Wrapper

Constructors#

.new(raw : LibGit::Repository)#

Class methods#

.clone(url : String, local_path : String = Dir.cwd, options : CloneOptions = CloneOptions.default)#

.clone#

.clone_mirror(url : String, path : String = Dir.cwd, options : CloneOptions = CloneOptions#

.init(path : String, *, bare : Bool | Nil = false, make : Bool | Nil = false, mode : Int | Nil = 511, bare_int : UInt32 = (bare ? 1 : 0).to_u)#

.init(path : String, **args, &) : Void#

.init_ext(path : String, *, make : Bool | Nil = false, mode : Int | Nil = 511, options : RepoInitOptions = RepoInitOptions.default)#

.init_ext#

.open(path : String)#

.open#

.open_bare(path : String)#

.open_bare#

.open_ext(path : String, flags : Array(Grits::OpenRepoType) = [OpenFlags::None], ceiling_dirs : String = "")#

.open_ext#

Methods#

#free#

#index#

#index#

#write_tree#