]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: turn die_on_error into caller-facing enum
authorJeff King <peff@peff.net>
Thu, 28 Jun 2018 22:05:00 +0000 (18:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 16:33:03 +0000 (09:33 -0700)
commit66f9722882993f60be656afaae4c5c9ac92957e9
tree7e546e5510b69ec315fb92fb25838dba0d6793f8
parente3331758f12da22f4103eec7efe1b5304a9be5e9
config: turn die_on_error into caller-facing enum

The config code has a die_on_error flag, which lets us emit
an error() instead of dying when we see a bogus config file.
But there's no way for a caller of the config code to set
this: it's auto-set based on whether we're reading a file or
a blob.

Instead, let's add it to the config_options struct. When
it's not set (or we have no options) we'll continue to fall
back to the existing file/blob behavior.

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