Merge branch 'ab/config-multi-and-nonbool'
Assorted config API updates. * ab/config-multi-and-nonbool: for-each-repo: with bad config, don't conflate <path> and <cmd> config API: add "string" version of *_value_multi(), fix segfaults config API users: test for *_get_value_multi() segfaults for-each-repo: error on bad --config config API: have *_multi() return an "int" and take a "dest" versioncmp.c: refactor config reading next commit config API: add and use a "git_config_get()" family of functions config tests: add "NULL" tests for *_get_value_multi() config tests: cover blind spots in git_die_config() tests
This commit is contained in:
@ -2318,7 +2318,11 @@ int bitmap_is_midx(struct bitmap_index *bitmap_git)
|
||||
|
||||
const struct string_list *bitmap_preferred_tips(struct repository *r)
|
||||
{
|
||||
return repo_config_get_value_multi(r, "pack.preferbitmaptips");
|
||||
const struct string_list *dest;
|
||||
|
||||
if (!repo_config_get_string_multi(r, "pack.preferbitmaptips", &dest))
|
||||
return dest;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int bitmap_is_preferred_refname(struct repository *r, const char *refname)
|
||||
|
Reference in New Issue
Block a user