Felipe Contreras <felipe.contreras@xxxxxxxxx> writes: > The value is what it is, the --bool and --bool-or-int options don't > specify the value type, just how it is interpreted. For example: a value > of '1' can be interpreted as 'true'. It is not really about "interpreting", but about showing, isn't it? With this in your .git/config file: [core] repositoryformatversion = 0 you would see $ git config --bool-or-int core.repositoryformatversion 0 $ git config --bool core.repositoryformatversion false $ git config --int core.repositoryformatversion 0 So it would be more like... show value as boolean show value as integer or boolean show value as integer wouldn't it? > Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> > --- > builtin-config.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/builtin-config.c b/builtin-config.c > index a2d656e..29d7b75 100644 > --- a/builtin-config.c > +++ b/builtin-config.c > @@ -66,9 +66,9 @@ static struct option builtin_config_options[] = { > OPT_STRING(0, "get-color", &get_color_slot, "slot", "find the color configured: [default]"), > OPT_STRING(0, "get-colorbool", &get_colorbool_slot, "slot", "find the color setting: [stdout-is-tty]"), > OPT_GROUP("Type"), > - OPT_BIT(0, "bool", &types, "value is \"true\" or \"false\"", TYPE_BOOL), > + OPT_BIT(0, "bool", &types, "value is intepreted as bool (\"true\" or \"false\")", TYPE_BOOL), > OPT_BIT(0, "int", &types, "value is decimal number", TYPE_INT), > - OPT_BIT(0, "bool-or-int", &types, "value is --bool or --int", TYPE_BOOL_OR_INT), > + OPT_BIT(0, "bool-or-int", &types, "value is interpreted either as bool or int", TYPE_BOOL_OR_INT), > OPT_GROUP("Other"), > OPT_BOOLEAN('z', "null", &end_null, "terminate values with NUL byte"), > OPT_END(), > -- > 1.6.5.4.g31fc3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html