Compare commits
9 Commits
v2.38.0-rc
...
v2.38.0-rc
Author | SHA1 | Date | |
---|---|---|---|
bcd6bc478a | |||
2a7d63a245 | |||
89a1ab8fb5 | |||
4fd6c5e444 | |||
0d14f80f94 | |||
32c6fff4b8 | |||
711340c797 | |||
4b79ee4b0c | |||
4eaed7c2f2 |
@ -10,7 +10,7 @@ sub format_one {
|
|||||||
$state = 0;
|
$state = 0;
|
||||||
open I, '<', "$name.txt" or die "No such file $name.txt";
|
open I, '<', "$name.txt" or die "No such file $name.txt";
|
||||||
while (<I>) {
|
while (<I>) {
|
||||||
if (/^(git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
|
if (/^(?:git|scalar)[a-z0-9-]*\(([0-9])\)$/) {
|
||||||
$mansection = $1;
|
$mansection = $1;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GVF=GIT-VERSION-FILE
|
GVF=GIT-VERSION-FILE
|
||||||
DEF_VER=v2.38.0-rc1
|
DEF_VER=v2.38.0-rc2
|
||||||
|
|
||||||
LF='
|
LF='
|
||||||
'
|
'
|
||||||
|
@ -143,6 +143,7 @@ static int parse_combine_subfilter(
|
|||||||
|
|
||||||
ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
|
ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
|
||||||
filter_options->sub_alloc);
|
filter_options->sub_alloc);
|
||||||
|
list_objects_filter_init(&filter_options->sub[new_index]);
|
||||||
|
|
||||||
decoded = url_percent_decode(subspec->buf);
|
decoded = url_percent_decode(subspec->buf);
|
||||||
|
|
||||||
@ -263,6 +264,8 @@ void parse_list_objects_filter(
|
|||||||
parse_error = gently_parse_list_objects_filter(
|
parse_error = gently_parse_list_objects_filter(
|
||||||
filter_options, arg, &errbuf);
|
filter_options, arg, &errbuf);
|
||||||
} else {
|
} else {
|
||||||
|
struct list_objects_filter_options *sub;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make filter_options an LOFC_COMBINE spec so we can trivially
|
* Make filter_options an LOFC_COMBINE spec so we can trivially
|
||||||
* add subspecs to it.
|
* add subspecs to it.
|
||||||
@ -273,10 +276,11 @@ void parse_list_objects_filter(
|
|||||||
filter_spec_append_urlencode(filter_options, arg);
|
filter_spec_append_urlencode(filter_options, arg);
|
||||||
ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
|
ALLOC_GROW_BY(filter_options->sub, filter_options->sub_nr, 1,
|
||||||
filter_options->sub_alloc);
|
filter_options->sub_alloc);
|
||||||
|
sub = &filter_options->sub[filter_options->sub_nr - 1];
|
||||||
|
|
||||||
parse_error = gently_parse_list_objects_filter(
|
list_objects_filter_init(sub);
|
||||||
&filter_options->sub[filter_options->sub_nr - 1], arg,
|
parse_error = gently_parse_list_objects_filter(sub, arg,
|
||||||
&errbuf);
|
&errbuf);
|
||||||
}
|
}
|
||||||
if (parse_error)
|
if (parse_error)
|
||||||
die("%s", errbuf.buf);
|
die("%s", errbuf.buf);
|
||||||
|
@ -723,7 +723,7 @@ static struct stored_bitmap *lazy_bitmap_for_commit(struct bitmap_index *bitmap_
|
|||||||
ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
|
ALLOC_GROW(xor_items, xor_items_nr + 1, xor_items_alloc);
|
||||||
|
|
||||||
if (xor_items_nr + 1 >= bitmap_git->entry_count) {
|
if (xor_items_nr + 1 >= bitmap_git->entry_count) {
|
||||||
error(_("corrupt bitmap lookup table: xor chain exceed entry count"));
|
error(_("corrupt bitmap lookup table: xor chain exceeds entry count"));
|
||||||
goto corrupt;
|
goto corrupt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -830,10 +830,9 @@ struct ewah_bitmap *bitmap_for_commit(struct bitmap_index *bitmap_git,
|
|||||||
if (!bitmap_git->table_lookup)
|
if (!bitmap_git->table_lookup)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
trace2_region_enter("pack-bitmap", "reading_lookup_table", the_repository);
|
/* this is a fairly hot codepath - no trace2_region please */
|
||||||
/* NEEDSWORK: cache misses aren't recorded */
|
/* NEEDSWORK: cache misses aren't recorded */
|
||||||
bitmap = lazy_bitmap_for_commit(bitmap_git, commit);
|
bitmap = lazy_bitmap_for_commit(bitmap_git, commit);
|
||||||
trace2_region_leave("pack-bitmap", "reading_lookup_table", the_repository);
|
|
||||||
if (!bitmap)
|
if (!bitmap)
|
||||||
return NULL;
|
return NULL;
|
||||||
return lookup_stored_bitmap(bitmap);
|
return lookup_stored_bitmap(bitmap);
|
||||||
|
@ -455,13 +455,6 @@ test_expect_success 'verify writing bitmap lookup table when enabled' '
|
|||||||
grep "\"label\":\"writing_lookup_table\"" trace2
|
grep "\"label\":\"writing_lookup_table\"" trace2
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'lookup table is actually used to traverse objects' '
|
|
||||||
git repack -adb &&
|
|
||||||
GIT_TRACE2_EVENT="$(pwd)/trace3" \
|
|
||||||
git rev-list --use-bitmap-index --count --all &&
|
|
||||||
grep "\"label\":\"reading_lookup_table\"" trace3
|
|
||||||
'
|
|
||||||
|
|
||||||
test_expect_success 'truncated bitmap fails gracefully (lookup table)' '
|
test_expect_success 'truncated bitmap fails gracefully (lookup table)' '
|
||||||
test_config pack.writebitmaphashcache false &&
|
test_config pack.writebitmaphashcache false &&
|
||||||
git repack -adb &&
|
git repack -adb &&
|
||||||
|
Reference in New Issue
Block a user