config: add options parameter to git_config_from_mem
commit4574f1aace4ca53ac0fc63a545383dab1a71fec9
authorJeff King <peff@peff.net>
Thu, 28 Jun 2018 22:05:24 +0000 (28 18:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 16:36:06 +0000 (3 09:36 -0700)
treeb511f639027fe89aecc1558da227d85fcf6f69ba
parent63583203df51c645aa2bf2988bbdfa3d308ef517
config: add options parameter to git_config_from_mem

The underlying config parser knows how to handle a
config_options struct, but git_config_from_mem() always
passes NULL. Let's allow our callers to specify the options
struct.

We could add a "_with_options" variant, but since there are
only a handful of callers, let's just update them to pass
NULL.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
config.h
fsck.c
submodule-config.c