Skip to content

class Grits::Oid
inherits Reference #

Included modules

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

Constructors#

.new(raw : LibGit::Oid)#

Class methods#

.from_sha(sha : String)#

Fetch an Oid from a SHA hash

If the SHA size is not equal to 40 chars this method will use git_oid_fromstrn

Methods#

#object(repo : Repo, type = Object::Type::Any)#

#to_s(io)#

Return the SHA hash for this Oid