@@ -30,7 +30,7 @@ enum lookup_type {
30
30
lookup_path
31
31
};
32
32
33
- static struct submodule_cache cache ;
33
+ static struct submodule_cache the_submodule_cache ;
34
34
static int is_cache_init ;
35
35
36
36
static int config_path_cmp (const struct submodule_entry * a ,
@@ -470,14 +470,14 @@ static void ensure_cache_init(void)
470
470
if (is_cache_init )
471
471
return ;
472
472
473
- cache_init (& cache );
473
+ cache_init (& the_submodule_cache );
474
474
is_cache_init = 1 ;
475
475
}
476
476
477
477
int parse_submodule_config_option (const char * var , const char * value )
478
478
{
479
479
struct parse_config_parameter parameter ;
480
- parameter .cache = & cache ;
480
+ parameter .cache = & the_submodule_cache ;
481
481
parameter .commit_sha1 = NULL ;
482
482
parameter .gitmodules_sha1 = null_sha1 ;
483
483
parameter .overwrite = 1 ;
@@ -490,18 +490,18 @@ const struct submodule *submodule_from_name(const unsigned char *commit_sha1,
490
490
const char * name )
491
491
{
492
492
ensure_cache_init ();
493
- return config_from_name (& cache , commit_sha1 , name );
493
+ return config_from_name (& the_submodule_cache , commit_sha1 , name );
494
494
}
495
495
496
496
const struct submodule * submodule_from_path (const unsigned char * commit_sha1 ,
497
497
const char * path )
498
498
{
499
499
ensure_cache_init ();
500
- return config_from_path (& cache , commit_sha1 , path );
500
+ return config_from_path (& the_submodule_cache , commit_sha1 , path );
501
501
}
502
502
503
503
void submodule_free (void )
504
504
{
505
- cache_free (& cache );
505
+ cache_free (& the_submodule_cache );
506
506
is_cache_init = 0 ;
507
507
}
0 commit comments