config.c (7577911244c437f4a4abac5e4b67b059c06dbe9d) config.c (395cf9691d72173d8cdaa613c5f0255f993af94b)
1/*
2 * GIT - The information manager from hell
3 *
4 * Copyright (C) Linus Torvalds, 2005
5 * Copyright (C) Johannes Schindelin, 2005
6 *
7 */
8#include "util.h"

--- 327 unchanged lines hidden (view full) ---

336{
337 if (!name)
338 return NULL;
339 return value;
340}
341
342static int perf_default_core_config(const char *var __used, const char *value __used)
343{
1/*
2 * GIT - The information manager from hell
3 *
4 * Copyright (C) Linus Torvalds, 2005
5 * Copyright (C) Johannes Schindelin, 2005
6 *
7 */
8#include "util.h"

--- 327 unchanged lines hidden (view full) ---

336{
337 if (!name)
338 return NULL;
339 return value;
340}
341
342static int perf_default_core_config(const char *var __used, const char *value __used)
343{
344 /* Add other config variables here and to Documentation/config.txt. */
344 /* Add other config variables here. */
345 return 0;
346}
347
348int perf_default_config(const char *var, const char *value, void *dummy __used)
349{
350 if (!prefixcmp(var, "core."))
351 return perf_default_core_config(var, value);
352
345 return 0;
346}
347
348int perf_default_config(const char *var, const char *value, void *dummy __used)
349{
350 if (!prefixcmp(var, "core."))
351 return perf_default_core_config(var, value);
352
353 /* Add other config variables here and to Documentation/config.txt. */
353 /* Add other config variables here. */
354 return 0;
355}
356
357static int perf_config_from_file(config_fn_t fn, const char *filename, void *data)
358{
359 int ret;
360 FILE *f = fopen(filename, "r");
361

--- 143 unchanged lines hidden ---
354 return 0;
355}
356
357static int perf_config_from_file(config_fn_t fn, const char *filename, void *data)
358{
359 int ret;
360 FILE *f = fopen(filename, "r");
361

--- 143 unchanged lines hidden ---