Skip to content

class Grits::Branch
inherits Reference #

Constructors#

.new(repo : Repo, ref : LibGit::Reference)#

Class methods#

.create(name : String, target : Commit, force : Bool = false)#

.create(name : String, target : Repo, *, commit_ref : String = "HEAD", force : Bool = false)#

Methods#

#checked_out? : Bool#

#checkout(options : CheckoutOptions = CheckoutOptions.default) : Nil#

#id : Oid#

#ref#

#repo#