summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2017-12-08 15:58:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-08 17:58:51 (GMT)
commit1e1e39b308fe9dd68a3312992a06270da7dd07af (patch)
treeab256bec78ece5d78095e2a7e7f260a5699b67e1 /config.c
parentacb0c57260aa78fc99939de2a27c48b5a3fb4f21 (diff)
downloadgit-1e1e39b308fe9dd68a3312992a06270da7dd07af.zip
git-1e1e39b308fe9dd68a3312992a06270da7dd07af.tar.gz
git-1e1e39b308fe9dd68a3312992a06270da7dd07af.tar.bz2
partial-clone: define partial clone settings in config
Create get and set routines for "partial clone" config settings. These will be used in a future commit by clone and fetch to remember the promisor remote and the default filter-spec. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index adb7d7a..adeee04 100644
--- a/config.c
+++ b/config.c
@@ -1241,6 +1241,11 @@ static int git_default_core_config(const char *var, const char *value)
return 0;
}
+ if (!strcmp(var, "core.partialclonefilter")) {
+ return git_config_string(&core_partial_clone_filter_default,
+ var, value);
+ }
+
/* Add other config variables here and to Documentation/config.txt. */
return 0;
}