Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add config variable core.symrefsonly
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index e89bab26c99f95e6bb7d3346343ab0c623843c42..bd35138daec12366193bf6e2b95399ef8287d205 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-214,6
+214,11
@@
int git_default_config(const char *var, const char *value)
return 0;
}
+ if (!strcmp(var, "core.symrefsonly")) {
+ only_use_symrefs = git_config_bool(var, value);
+ return 0;
+ }
+
if (!strcmp(var, "user.name")) {
strncpy(git_default_name, value, sizeof(git_default_name));
return 0;