X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=config.c;h=253c48a6130a9268c106170df7205441d4ab36ac;hb=c1aee1fd8d94da9b3c5d2dc1d4264f7e73a58f80;hp=7ea8a7369a316c5a74266d891e9173a5926a8c53;hpb=34e98ea56414adc5a582e6368e8ec9c109dbee48;p=git.git diff --git a/config.c b/config.c index 7ea8a736..253c48a6 100644 --- a/config.c +++ b/config.c @@ -60,6 +60,12 @@ static char *parse_value(void) space = 1; continue; } + if (!quote) { + if (c == ';' || c == '#') { + comment = 1; + continue; + } + } if (space) { if (len) value[len++] = ' '; @@ -93,12 +99,6 @@ static char *parse_value(void) quote = 1-quote; continue; } - if (!quote) { - if (c == ';' || c == '#') { - comment = 1; - continue; - } - } value[len++] = c; } } @@ -252,7 +252,7 @@ int git_default_config(const char *var, const char *value) return 0; } - /* Add other config variables here.. */ + /* Add other config variables here and to Documentation/config.txt. */ return 0; }