An instance for a custom backend
Queries the refdb backend to determine if the given ref_name exists. A refdb implementation must provide this function.
Queries the refdb backend for a given reference. A refdb implementation must provide this function.
Enumerates each reference in the refdb. A refdb implementation must provide this function.
Enumerates each reference in the refdb that matches the given glob string. A refdb implementation may provide this function; if it is not provided, foreach will be used and the results filtered against the glob.
Writes the given reference to the refdb. A refdb implementation must provide this function.
Deletes the given reference from the refdb. A refdb implementation must provide this function.
Suggests that the given refdb compress or optimize its references. This mechanism is implementation specific. (For on-disk reference databases, this may pack all loose references.) A refdb implementation may provide this function; if it is not provided, nothing will be done.
Frees any resources held by the refdb. A refdb implementation may provide this function; if it is not provided, nothing will be done.