Refactor `object-file.c` to not depend on global state
Refactor the named file to not depend on global state anymore, most importantly on the_repository
by dropping the USE_THE_REPOSITORY_VARIABLE
define. This is a prerequisite towards making the object database code self-contained.
Edited by Patrick Steinhardt