Commit d1e446550a966a1dbc5d765aa79fe9bc47a1c1a3

Edward Thomson 2017-11-30T15:52:47

object: introduce git_object_stringn2type Introduce an internal API to get the object type based on a length-specified (not null terminated) string representation. This can be used to compare the (space terminated) object type name in a loose object. Reimplement `git_object_string2type` based on this API.