diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-05 12:37:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-05 12:37:24 -0700 |
commit | f0df1293acdba9513cae17e2c63b4169f1347371 (patch) | |
tree | e4d9309caa37b13a21ad38147833ed7ee29479bd /config.c | |
parent | 46068383aa825dfe9026f9255cea07da07e06253 (diff) | |
parent | e77095e8b8d541b41c242aa6dbc8319cb99def5e (diff) | |
download | git-f0df1293acdba9513cae17e2c63b4169f1347371.tar.gz |
Merge branch 'maint-1.6.3' into maint
* maint-1.6.3:
Better usage string for reflog.
hg-to-git: don't import the unused popen2 module
send-email: remove debug trace
config: Keep inner whitespace verbatim
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -62,7 +62,8 @@ static char *parse_value(void) if (comment) continue; if (isspace(c) && !quote) { - space = 1; + if (len) + space++; continue; } if (!quote) { @@ -71,11 +72,8 @@ static char *parse_value(void) continue; } } - if (space) { - if (len) - value[len++] = ' '; - space = 0; - } + for (; space; space--) + value[len++] = ' '; if (c == '\\') { c = get_next_char(); switch (c) { |