Commit a3ff28e9d14806a57c28d5835891634496febc94

Edward Thomson 2015-05-13T09:02:00

Merge pull request #3120 from libgit2/cmn/backends-prio odb: reverse the default backend priorities

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/odb.c b/src/odb.c
index c3ae15a..5dccb63 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -21,9 +21,12 @@
 
 #define GIT_ALTERNATES_FILE "info/alternates"
 
-/* TODO: is this correct? */
-#define GIT_LOOSE_PRIORITY 2
-#define GIT_PACKED_PRIORITY 1
+/*
+ * We work under the assumption that most objects for long-running
+ * operations will be packed
+ */
+#define GIT_LOOSE_PRIORITY 1
+#define GIT_PACKED_PRIORITY 2
 
 #define GIT_ALTERNATES_MAX_DEPTH 5