• Show log

    Commit

  • Hash : cd460522
    Author : Tony De La Nuez
    Date : 2020-04-20T22:16:52

    odb: Implement option for overriding of default odb backend priority
    
    Introduce GIT_OPT_SET_ODB_LOOSE_PRIORITY and GIT_OPT_SET_ODB_PACKED_PRIORITY
    to allow overriding the default priority values for the default ODB
    backends. Libgit2 has historically assumed that most objects for long-
    running operations will be packed, therefore GIT_LOOSE_PRIORITY is
    set to 1 by default, and GIT_PACKED_PRIORITY to 2.
    When a client allows libgit2 to set the default backends, they can
    specify an override for the two priority values in order to change
    the order in which each ODB backend is accessed.