pack-objects: create pack.useSparse setting
[gitweb.git] / builtin / pack-objects.c
index 7d5b0735e396985c82dfa64bdd5d43badb6eb1ce..124b1bafc4b892466d20ec38ac3a2f8a5b81eac0 100644 (file)
@@ -2711,6 +2711,10 @@ static int git_pack_config(const char *k, const char *v, void *cb)
                use_bitmap_index_default = git_config_bool(k, v);
                return 0;
        }
+       if (!strcmp(k, "pack.usesparse")) {
+               sparse = git_config_bool(k, v);
+               return 0;
+       }
        if (!strcmp(k, "pack.threads")) {
                delta_search_threads = git_config_int(k, v);
                if (delta_search_threads < 0)