File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2929 * We work under the assumption that most objects for long-running
3030 * operations will be packed
3131 */
32- int git_odb__loose_priority = 1 ;
33- int git_odb__packed_priority = 2 ;
32+ int git_odb__loose_priority = GIT_ODB_DEFAULT_LOOSE_PRIORITY ;
33+ int git_odb__packed_priority = GIT_ODB_DEFAULT_PACKED_PRIORITY ;
3434
3535bool git_odb__strict_hash_verification = true;
3636
Original file line number Diff line number Diff line change 2424#define GIT_OBJECT_DIR_MODE 0777
2525#define GIT_OBJECT_FILE_MODE 0444
2626
27+ #define GIT_ODB_DEFAULT_LOOSE_PRIORITY 1
28+ #define GIT_ODB_DEFAULT_PACKED_PRIORITY 2
29+
2730extern bool git_odb__strict_hash_verification ;
2831
2932/* DO NOT EXPORT */
Original file line number Diff line number Diff line change 11#include "clar_libgit2.h"
22#include "git2/sys/odb_backend.h"
3+ #include "odb.h"
34
45typedef struct {
56 git_odb_backend base ;
@@ -43,6 +44,11 @@ void test_odb_sorting__cleanup(void)
4344{
4445 git_odb_free (_odb );
4546 _odb = NULL ;
47+
48+ cl_git_pass (git_libgit2_opts (GIT_OPT_SET_ODB_LOOSE_PRIORITY ,
49+ GIT_ODB_DEFAULT_LOOSE_PRIORITY ));
50+ cl_git_pass (git_libgit2_opts (GIT_OPT_SET_ODB_PACKED_PRIORITY ,
51+ GIT_ODB_DEFAULT_PACKED_PRIORITY ));
4652}
4753
4854void test_odb_sorting__basic_backends_sorting (void )
You can’t perform that action at this time.
0 commit comments