-#include <ctype.h>
#include "cache.h"
}
if (!isalpha(c))
break;
- var[baselen] = c;
+ var[baselen] = tolower(c);
if (get_value(fn, var, baselen+1) < 0)
break;
}
return 0;
}
+ if (!strcmp(var, "user.name")) {
+ strncpy(git_default_name, value, sizeof(git_default_name));
+ return 0;
+ }
+
+ if (!strcmp(var, "user.email")) {
+ strncpy(git_default_email, value, sizeof(git_default_email));
+ return 0;
+ }
+
/* Add other config variables here.. */
return 0;
}