repository.h: move declaration of the_index from cache.h
the_index is a global variable defined in repository.c; as such, its declaration feels better suited living in repository.h rather than cache.h. Move it. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
750324ddb8
commit
bc47f16db2
4
cache.h
4
cache.h
@ -312,10 +312,6 @@ typedef int (*must_prefetch_predicate)(const struct cache_entry *);
|
|||||||
void prefetch_cache_entries(const struct index_state *istate,
|
void prefetch_cache_entries(const struct index_state *istate,
|
||||||
must_prefetch_predicate must_prefetch);
|
must_prefetch_predicate must_prefetch);
|
||||||
|
|
||||||
#ifdef USE_THE_INDEX_VARIABLE
|
|
||||||
extern struct index_state the_index;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Initialize and use the cache information */
|
/* Initialize and use the cache information */
|
||||||
struct lock_file;
|
struct lock_file;
|
||||||
int do_read_index(struct index_state *istate, const char *path,
|
int do_read_index(struct index_state *istate, const char *path,
|
||||||
|
@ -170,6 +170,9 @@ struct repository {
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern struct repository *the_repository;
|
extern struct repository *the_repository;
|
||||||
|
#ifdef USE_THE_INDEX_VARIABLE
|
||||||
|
extern struct index_state the_index;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define a custom repository layout. Any field can be NULL, which
|
* Define a custom repository layout. Any field can be NULL, which
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include "test-tool.h"
|
#include "test-tool.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "hex.h"
|
#include "hex.h"
|
||||||
|
#include "repository.h"
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
#include "split-index.h"
|
#include "split-index.h"
|
||||||
#include "ewah/ewok.h"
|
#include "ewah/ewok.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user