• Junio C Hamano's avatar
    Merge branch 'sb/object-store-replace' · 174774cd
    Junio C Hamano authored
    The effort to pass the repository in-core structure throughout the
    API continues.  This round deals with the code that implements the
    refs/replace/ mechanism.
    
    * sb/object-store-replace:
      replace-object: allow lookup_replace_object to handle arbitrary repositories
      replace-object: allow do_lookup_replace_object to handle arbitrary repositories
      replace-object: allow prepare_replace_object to handle arbitrary repositories
      refs: allow for_each_replace_ref to handle arbitrary repositories
      refs: store the main ref store inside the repository struct
      replace-object: add repository argument to lookup_replace_object
      replace-object: add repository argument to do_lookup_replace_object
      replace-object: add repository argument to prepare_replace_object
      refs: add repository argument to for_each_replace_ref
      refs: add repository argument to get_main_ref_store
      replace-object: check_replace_refs is safe in multi repo environment
      replace-object: eliminate replace objects prepared flag
      object-store: move lookup_replace_object to replace-object.h
      replace-object: move replace_map to object store
      replace_object: use oidmap
    174774cd
refs.h 29.2 KB