module Grits::Mixins::Repo

Included Modules

Direct including types

Defined in:

grits/mixins/repo.cr

Instance Method Summary

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

Instance Method Detail

def bare? #

[View source]
def checkout_head(options : CheckoutOptions = CheckoutOptions.default) #

[View source]
def checkout_tree(object : Grits::Object, options : CheckoutOptions = CheckoutOptions.default) #

[View source]
def commondir #

[View source]
def config(snapshot : Bool | Nil = false, &) #

[View source]
def configure_identity(name : String | Nil = nil, email : String | Nil = nil) : Nil #

[View source]
def configured_identity : Tuple(String | Nil, String | Nil) #

[View source]
def create_branch(name : String, *, ref : String = "HEAD", force : Bool = false) #

[View source]
def create_remote(name : String, url : String) #

[View source]
def create_remote(name : String, url : String, &) #

[View source]
def create_remote_with_fetchspec(name : String, url : String, refspec : String) #

[View source]
def detach_head #

[View source]
def diff_workdir(options = DiffOptions.default) : Diff #

[View source]
def diff_workdir(options = DiffOptions.default, &) #

[View source]
def discover(start : String, across_fs : Bool = false, cieling_dirs : String = "") : String #

[View source]
def each_fetchhead(&block : EachFetchHeadCb) : Void #

[View source]
def empty? #

[View source]
def hash_file(path : String, type : Object::Type, as_path : String | Nil = nil) #

[View source]
def head #

[View source]
def head? #

[View source]
def head_detached? #

[View source]
def head_unborn? #

[View source]
def item_path(item : Item) #

[View source]
def lookup_commit(sha : String) : Commit #

[View source]
def mirror_remote(name : String, url : String) #

[View source]
def namespace : String | Nil #

[View source]
def object_database(&) #

[View source]
def path #

[View source]
def remote(name : String) #

[View source]
def remotes #

[View source]
def remotes(&) #

[View source]
def revparse_single(text : String) #

[View source]
def set_head(name : String) #

[View source]
def shallow? : Bool #

[View source]
def workdir #

[View source]
def worktree #

[View source]
def worktree(&) #

[View source]
def worktree? #

[View source]
def worktree_head(worktree : String) : Reference | Nil #

[View source]
def worktree_head_detached?(worktree : String) #

[View source]