perf/run: add conf_opts argument to get_var_from_env_or_config()
commit3ae7d2b0cd819f2b01e70c0015d6971a47e24c8a
authorChristian Couder <christian.couder@gmail.com>
Fri, 5 Jan 2018 09:12:23 +0000 (5 10:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jan 2018 20:31:07 +0000 (5 12:31 -0800)
treea89cf359cc88334493b32821c2004e8e5dbc6df1
parent05eb1c37ed345d0ea244a239dad18de830e022f6
perf/run: add conf_opts argument to get_var_from_env_or_config()

Let's make it possible to use `git config` type specifiers like
`--int` or `--bool`, so that config values are converted to the
canonical form and easier to use.

This additional argument is now the fourth argument of
get_var_from_env_or_config() instead of the fifth because we
want the default value argument to be unset if it is not
passed, and this is simpler if it is the last argument.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/run