projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
repo-config: deconvolute logics
[git.git]
/
config.c
diff --git
a/config.c
b/config.c
index
7ea8a73
..
253c48a
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-60,6
+60,12
@@
static char *parse_value(void)
space = 1;
continue;
}
space = 1;
continue;
}
+ if (!quote) {
+ if (c == ';' || c == '#') {
+ comment = 1;
+ continue;
+ }
+ }
if (space) {
if (len)
value[len++] = ' ';
if (space) {
if (len)
value[len++] = ' ';
@@
-93,12
+99,6
@@
static char *parse_value(void)
quote = 1-quote;
continue;
}
quote = 1-quote;
continue;
}
- if (!quote) {
- if (c == ';' || c == '#') {
- comment = 1;
- continue;
- }
- }
value[len++] = c;
}
}
value[len++] = c;
}
}
@@
-252,7
+252,7
@@
int git_default_config(const char *var, const char *value)
return 0;
}
return 0;
}
- /* Add other config variables here
.
. */
+ /* Add other config variables here
and to Documentation/config.txt
. */
return 0;
}
return 0;
}