diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-08-20 15:47:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-24 02:14:41 +0200 |
commit | 08aefc9e47eb2eaf231352223c939d69b0fb3759 (patch) | |
tree | 3975ee3df946e6f1d1e360ffd7204faba53bb826 /config.c | |
parent | unpack-trees.c: generalize verify_* functions (diff) | |
download | git-08aefc9e47eb2eaf231352223c939d69b0fb3759.tar.xz git-08aefc9e47eb2eaf231352223c939d69b0fb3759.zip |
unpack-trees(): "enable" sparse checkout and load $GIT_DIR/info/sparse-checkout
This patch introduces core.sparseCheckout, which will control whether
sparse checkout support is enabled in unpack_trees()
It also loads sparse-checkout file that will be used in the next patch.
I split it out so the next patch will be shorter, easier to read.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -503,6 +503,11 @@ static int git_default_core_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.sparsecheckout")) { + core_apply_sparse_checkout = git_config_bool(var, value); + return 0; + } + /* Add other config variables here and to Documentation/config.txt. */ return 0; } |