diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-05-13 09:02:00 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-05-13 09:02:00 -0400 |
commit | a3ff28e9d14806a57c28d5835891634496febc94 (patch) | |
tree | b5374c99aa19b516083e64ba8af2e700af9f9406 | |
parent | c5c5cdb106d012d132475d9156923857f8d302fc (diff) | |
parent | b0d7f329a87ea388fe2f25a1aaf7033b6367c190 (diff) | |
download | libgit2-a3ff28e9d14806a57c28d5835891634496febc94.tar.gz |
Merge pull request #3120 from libgit2/cmn/backends-prio
odb: reverse the default backend priorities
-rw-r--r-- | src/odb.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |