Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/pack-shallow-always-without-bitmap'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 26 Aug 2014 18:16:25 +0000
(11:16 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 26 Aug 2014 18:16:25 +0000
(11:16 -0700)
Reachability bitmaps do not work with shallow operations.
Fixes regression in 2.0.
* jk/pack-shallow-always-without-bitmap:
pack-objects: turn off bitmaps when we see --shallow lines
1
2
builtin/pack-objects.c
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
compact
(merge:
212d781
f7f9108
)
diff --combined
builtin/pack-objects.c
index 238b5021eb105007a42061d5f8febc455530da45,2c60ddf4a896de034a5d536bba4ef35561de1a61..b59f5d895e38bdb96d19b5fc5061669facdf22cc
---
1
/
builtin/pack-objects.c
---
2
/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@@
-2214,6
-2214,10
+2214,6
@@@
static int git_pack_config(const char *
cache_max_small_delta_size = git_config_int(k, v);
return 0;
}
- if (!strcmp(k, "pack.writebitmaps")) {
- write_bitmap_index = git_config_bool(k, v);
- return 0;
- }
if (!strcmp(k, "pack.writebitmaphashcache")) {
if (git_config_bool(k, v))
write_bitmap_options |= BITMAP_OPT_HASH_CACHE;
@@@
-2494,6
-2498,7
+2494,7
@@@
static void get_object_list(int ac, con
if (get_sha1_hex(line + 10, sha1))
die("not an SHA-1 '%s'", line + 10);
register_shallow(sha1);
+ use_bitmap_index = 0;
continue;
}
die("not a rev '%s'", line);