static char term = '\n';
static enum { T_RAW, T_INT, T_BOOL, T_BOOL_OR_INT } type = T_RAW;
static char term = '\n';
static enum { T_RAW, T_INT, T_BOOL, T_BOOL_OR_INT } type = T_RAW;
{
if (value_)
printf("%s%c%s%c", key_, delim, value_, term);
{
if (value_)
printf("%s%c%s%c", key_, delim, value_, term);
- git_config_from_file(show_config, global);
- git_config_from_file(show_config, local);
+ git_config_from_file(show_config, global, NULL);
+ git_config_from_file(show_config, local, NULL);
if (!get_color_found && def_color)
color_parse(def_color, "command line", parsed_color);
if (!get_color_found && def_color)
color_parse(def_color, "command line", parsed_color);
static int stdout_is_tty;
static int get_colorbool_found;
static int get_diff_color_found;
static int stdout_is_tty;
static int get_colorbool_found;
static int get_diff_color_found;
get_colorbool_found = -1;
get_diff_color_found = -1;
get_color_slot = argv[0];
get_colorbool_found = -1;
get_diff_color_found = -1;
get_color_slot = argv[0];
if (get_colorbool_found < 0) {
if (!strcmp(get_color_slot, "color.diff"))
get_colorbool_found = get_diff_color_found;
if (get_colorbool_found < 0)
if (get_colorbool_found < 0) {
if (!strcmp(get_color_slot, "color.diff"))
get_colorbool_found = get_diff_color_found;
if (get_colorbool_found < 0)
else if (!strcmp(argv[1], "--list") || !strcmp(argv[1], "-l")) {
if (argc != 2)
usage(git_config_set_usage);
else if (!strcmp(argv[1], "--list") || !strcmp(argv[1], "-l")) {
if (argc != 2)
usage(git_config_set_usage);