Re: [GSOC PATCH v4 3/3] environment: remove the global variable 'sparse_expect_files_outside_of_patterns'
Ayush Chandekar <ayu.chandekar@gmail.com> writes:
Show 15 quoted lines
> diff --git a/sparse-index.c b/sparse-index.c
> index 444da8a753..5d87fc65c0 100644
> --- a/sparse-index.c
> +++ b/sparse-index.c
> @@ -1,4 +1,3 @@
> -#define USE_THE_REPOSITORY_VARIABLE
> #define DISABLE_SIGN_COMPARE_WARNINGS
>
> #include "git-compat-util.h"
> @@ -668,6 +667,9 @@ static void clear_skip_worktree_from_present_files_full(struct index_state *ista
>
> void clear_skip_worktree_from_present_files(struct index_state *istate)
> {
> + int sparse_expect_files_outside_of_patterns = 0;
> + repo_config_get_bool(istate->repo, "sparse.expectfilesoutsideofpatterns", There is a trailing whitespace here.
> + &sparse_expect_files_outside_of_patterns);