class Grits::Repo
- Grits::Repo
- Reference
- Object
Included Modules
Defined in:
grits/repo.crConstructors
Class Method Summary
- .clone(url : String, local_path : String = Dir.cwd, options : CloneOptions = CloneOptions.default)
- .clone(*args, &)
- .clone_mirror(url : String, path : String = Dir.cwd, options : CloneOptions = CloneOptions.default, &)
- .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(path : String, **args, &)
- .open(path : String)
- .open(*args, &)
- .open_bare(path : String)
- .open_bare(path : String, &)
- .open_ext(path : String, flags : Array(Grits::OpenRepoType) = [OpenFlags::None], ceiling_dirs : String = "")
- .open_ext(path : String, **opts, &)
Instance Method Summary
Instance methods inherited from module Grits::Mixins::Repo
bare?
bare?,
checkout_head(options : CheckoutOptions = CheckoutOptions.default)
checkout_head,
checkout_tree(object : Grits::Object, options : CheckoutOptions = CheckoutOptions.default)
checkout_tree,
commondir
commondir,
config(snapshot : Bool | Nil = false, &)
config,
configure_identity(name : String | Nil = nil, email : String | Nil = nil) : Nil
configure_identity,
configured_identity : Tuple(String | Nil, String | Nil)
configured_identity,
create_branch(name : String, *, ref : String = "HEAD", force : Bool = false)
create_branch,
create_remote(name : String, url : String)create_remote(name : String, url : String, &) create_remote, create_remote_with_fetchspec(name : String, url : String, refspec : String) create_remote_with_fetchspec, detach_head detach_head, diff_workdir(options = DiffOptions.default) : Diff
diff_workdir(options = DiffOptions.default, &) diff_workdir, discover(start : String, across_fs : Bool = false, cieling_dirs : String = "") : String discover, each_fetchhead(&block : EachFetchHeadCb) : Void each_fetchhead, empty? empty?, hash_file(path : String, type : Object::Type, as_path : String | Nil = nil) hash_file, head head, head? head?, head_detached? head_detached?, head_unborn? head_unborn?, item_path(item : Item) item_path, lookup_commit(sha : String) : Commit lookup_commit, mirror_remote(name : String, url : String) mirror_remote, namespace : String | Nil namespace, object_database(&) object_database, path path, remote(name : String) remote, remotes
remotes(&) remotes, revparse_single(text : String) revparse_single, set_head(name : String) set_head, shallow? : Bool shallow?, workdir workdir, worktree
worktree(&) worktree, worktree? worktree?, worktree_head(worktree : String) : Reference | Nil worktree_head, worktree_head_detached?(worktree : String) worktree_head_detached?
Instance methods inherited from module Grits::Mixins::Repository::Tag
each_tag(&block : Grits::Tag | Grits::Commit | Grits::Tree -> Bool)
each_tag,
each_tag_info(&block : Grits::TagInfo -> Bool)
each_tag_info,
tag_list : Array(String)
tag_list,
tags
tags
Instance methods inherited from module Grits::Mixins::Repository::Commit
commit_at(reference, & : Grits::Commit -> )
commit_at,
commit_at_head(&)
commit_at_head,
lookup_commit_by_oid(oid : Grits::Oid) : Grits::Commit
lookup_commit_by_oid,
object_id_at(reference) : Oid
object_id_at
Instance methods inherited from module Grits::Mixins::Repository::Tree
lookup_tree(sha : String)lookup_tree(oid : Oid)
lookup_tree(sha : String, &)
lookup_tree(oid : Oid, &) lookup_tree, tree_at(ref : String, &) tree_at
Constructor Detail
Class Method Detail
def self.clone(url : String, local_path : String = Dir.cwd, options : CloneOptions = CloneOptions.default)
#
def self.clone_mirror(url : String, path : String = Dir.cwd, options : CloneOptions = CloneOptions.default, &)
#
def self.init(path : String, *, bare : Bool | Nil = false, make : Bool | Nil = false, mode : Int | Nil = 511, bare_int : UInt32 = (bare ? 1 : 0).to_u)
#
def self.init_ext(path : String, *, make : Bool | Nil = false, mode : Int | Nil = 511, options : RepoInitOptions = RepoInitOptions.default)
#
def self.open_ext(path : String, flags : Array(Grits::OpenRepoType) = [OpenFlags::None], ceiling_dirs : String = "")
#