Create a new object database and automatically add
the two default backends:
- git_odb_backend_loose: read and write loose object files
from disk, assuming objects_dir as the Objects folder
- git_odb_backend_pack: read objects from packfiles,
assuming objects_dir as the Objects folder which
contains a 'pack/' folder with the corresponding data
@param out_ location to store the database pointer, if opened.
Set to null if the open failed.
@param objects_dir path of the backends' "objects" directory.
@return 0 or an error code
Create a new object database and automatically add the two default backends:
- git_odb_backend_loose: read and write loose object files from disk, assuming objects_dir as the Objects folder
- git_odb_backend_pack: read objects from packfiles, assuming objects_dir as the Objects folder which contains a 'pack/' folder with the corresponding data
@param out_ location to store the database pointer, if opened. Set to null if the open failed. @param objects_dir path of the backends' "objects" directory. @return 0 or an error code