git_oid_shorten_new

Create a new OID shortener.

The OID shortener is used to process a list of OIDs in text form and return the shortest length that would uniquely identify all of them.

E.g. look at the result of git log --abbrev.

extern (C) nothrow @nogc
git_oid_shorten_new
(
size_t min_length
)

Parameters

min_length size_t

The minimal length for all identifiers, which will be used even if shorter OIDs would still be unique.

Return Value

a git_oid_shorten instance, null if OOM

Meta