2023-05-16 09:33:50 +03:00
|
|
|
#ifndef NAME_HASH_H
|
|
|
|
#define NAME_HASH_H
|
|
|
|
|
|
|
|
struct cache_entry;
|
|
|
|
struct index_state;
|
|
|
|
|
2024-02-27 00:39:12 +03:00
|
|
|
|
|
|
|
int index_dir_find(struct index_state *istate, const char *name, int namelen,
|
|
|
|
struct strbuf *canonical_path);
|
|
|
|
|
|
|
|
#define index_dir_exists(i, n, l) index_dir_find((i), (n), (l), NULL)
|
|
|
|
|
2023-05-16 09:33:50 +03:00
|
|
|
void adjust_dirname_case(struct index_state *istate, char *name);
|
|
|
|
struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int igncase);
|
2021-02-06 05:28:33 +03:00
|
|
|
struct cache_entry *index_file_next_match(struct index_state *istate, struct cache_entry *ce, int igncase);
|
2023-05-16 09:33:50 +03:00
|
|
|
|
|
|
|
int test_lazy_init_name_hash(struct index_state *istate, int try_threaded);
|
|
|
|
void add_name_hash(struct index_state *istate, struct cache_entry *ce);
|
|
|
|
void remove_name_hash(struct index_state *istate, struct cache_entry *ce);
|
|
|
|
void free_name_hash(struct index_state *istate);
|
|
|
|
|
|
|
|
#endif /* NAME_HASH_H */
|