-- -- Warning: AUTOGENERATED DOCS. -- --- Class "OID". -- module("OID") --- Create a new OID object. -- --

Calls git_oid_fromstrn:

If N is odd, N-1 characters will be parsed instead. -- The remaining space in the git_oid will be set to zero. -- @param str input hex string of at least size `length`. Must be of type string. -- @return OID or nil on error. -- @return Error string. -- @name OID.hex function OID.hex(str) end --- Create a new OID object. -- --

Calls git_oid_fromraw:

-- @param raw the raw input bytes to be copied.. Must be of type string. -- @return OID. -- @name OID.raw function OID.raw(raw) end --- object method. -- -- @return string. -- @name OID:pathfmt function OID:pathfmt() end --- object method. -- -- @return string. -- @name OID:fmt function OID:fmt() end --- object meta method. -- -- @return string. -- @name OID_mt:__tostring function OID_mt:__tostring() end --- object meta method. -- --

Calls git_oid_cmp:

-- @param id Must be of type OID. -- @return integer. -- @name OID_mt:__eq function OID_mt:__eq(id) end