class Git::Repo
- Git::Repo
- Reference
- Object
Defined in:
lib/repo.crClass Method Summary
Instance Method Summary
- #ahead_behind(local : Oid, upstream : Oid)
- #analyze_merge(their : AnnotatedCommit | Array(AnnotatedCommit), preference : C::MergePreferenceT? = nil)
- #checkout(ref : Ref, name_as : String? = nil, options : CheckoutOptions? = nil)
- #checkout_head(options : CheckoutOptions? = nil)
- #checkout_options=(checkout_options : CheckoutOptions?)
- #checkout_options? : CheckoutOptions?
- #commit_is_descendant_of(commit : Oid, ancestor : Oid)
-
#commits : CommitIterator
Iterate over the repositories commits
- #create_commit(message : String, update_ref : String? = nil, signature : Signature? = nil, message_encoding : String? = nil, parents : Commit | Array(Commit) | Nil = nil)
- #create_commit(tree : Tree, message : String, update_ref : String? = nil, signature : Signature? = nil, message_encoding : String? = nil, parents : Commit | Array(Commit) | Nil = nil)
- #create_ref(name : String, oid : Oid, force = false)
-
#create_ref(name : String, initial_commit_message : String? = "initial", force = false)
Creates a reference that points to HEAD.
- #create_remote(name : String, url : String)
-
#create_remote?(name : String, url : String)
Creates a new remote.
- #credential=(credential : Credentials::Base?)
- #credential? : Credentials::Base?
- #diff_options=(diff_options : DiffOptions?)
- #diff_options? : DiffOptions?
- #diff_to_index(tree : Tree? = nil, index : Index? = nil, options : DiffOptions? = nil)
- #diff_to_workdir(tree : Tree? = nil, options : DiffOptions? = nil)
- #each_ref(&block : Ref -> _)
- #get_annotated_commit(ref : Ref)
- #head
- #head?
- #lookup_commit(oid : Oid)
- #lookup_commit?(oid : Oid)
- #lookup_object(oid : Oid, type : LibC::Int = C::ObjAny)
- #lookup_or_create_remote(name : String, url : String)
- #lookup_ref(name)
- #lookup_ref?(name)
- #lookup_remote(name)
- #lookup_remote?(name)
- #lookup_tree(oid : Oid)
- #merge(their : AnnotatedCommit | Array(AnnotatedCommit), options : MergeOptions? = nil, checkout_options : CheckoutOptions? = nil)
- #merge_options=(merge_options : MergeOptions?)
- #merge_options? : MergeOptions?
- #new_default_signature
- #new_index
- #onto(ref : Ref?, type : C::ResetT, checkout_options : CheckoutOptions? = nil, &block)
- #parse_rev(spec : String)
- #parse_rev?(spec : String)
- #path
- #rebase(upstream : AnnotatedCommit, branch : AnnotatedCommit? = nil, onto : AnnotatedCommit? = nil, options : RebaseOptions? = nil)
- #rebase(upstream : AnnotatedCommit, branch : AnnotatedCommit? = nil, onto : AnnotatedCommit? = nil, options : RebaseOptions? = nil, signature : Signature? = nil, &block)
- #rebase_options=(rebase_options : RebaseOptions?)
- #rebase_options? : RebaseOptions?
- #ref_to_oid(name : String)
- #ref_to_oid?(name : String)
- #remotes
- #reset(commit : AnnotatedCommit, type : C::ResetT, checkout_options : CheckoutOptions? = nil)
- #safe : Safe::Repository::Type
- #set_head(commit : AnnotatedCommit)
- #set_head(refname : String)
- #set_head(oid : Oid)
- #signature=(signature : Signature?)
- #signature? : Signature?
Class Method Detail
Instance Method Detail
def analyze_merge(their : AnnotatedCommit | Array(AnnotatedCommit), preference : C::MergePreferenceT? = nil)
#
def create_commit(message : String, update_ref : String? = nil, signature : Signature? = nil, message_encoding : String? = nil, parents : Commit | Array(Commit) | Nil = nil)
#
def create_commit(tree : Tree, message : String, update_ref : String? = nil, signature : Signature? = nil, message_encoding : String? = nil, parents : Commit | Array(Commit) | Nil = nil)
#
Creates a reference that points to HEAD.
Creates a initial commit first if the head is unborn.
def create_remote?(name : String, url : String)
#
Creates a new remote.
Does nothing if the remote exists.
def merge(their : AnnotatedCommit | Array(AnnotatedCommit), options : MergeOptions? = nil, checkout_options : CheckoutOptions? = nil)
#
def rebase(upstream : AnnotatedCommit, branch : AnnotatedCommit? = nil, onto : AnnotatedCommit? = nil, options : RebaseOptions? = nil)
#
def rebase(upstream : AnnotatedCommit, branch : AnnotatedCommit? = nil, onto : AnnotatedCommit? = nil, options : RebaseOptions? = nil, signature : Signature? = nil, &block)
#