Elijah Newren | f565385 | 2023-05-16 06:33:50 +0000 | [diff] [blame] | 1 | #ifndef NAME_HASH_H |
| 2 | #define NAME_HASH_H |
| 3 | |
| 4 | struct cache_entry; |
| 5 | struct index_state; |
| 6 | |
Jeff Hostetler | b316552 | 2024-02-26 21:39:12 +0000 | [diff] [blame] | 7 | |
| 8 | int index_dir_find(struct index_state *istate, const char *name, int namelen, |
| 9 | struct strbuf *canonical_path); |
| 10 | |
| 11 | #define index_dir_exists(i, n, l) index_dir_find((i), (n), (l), NULL) |
| 12 | |
Elijah Newren | f565385 | 2023-05-16 06:33:50 +0000 | [diff] [blame] | 13 | void adjust_dirname_case(struct index_state *istate, char *name); |
| 14 | struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int igncase); |
| 15 | |
| 16 | int test_lazy_init_name_hash(struct index_state *istate, int try_threaded); |
| 17 | void add_name_hash(struct index_state *istate, struct cache_entry *ce); |
| 18 | void remove_name_hash(struct index_state *istate, struct cache_entry *ce); |
| 19 | void free_name_hash(struct index_state *istate); |
| 20 | |
| 21 | #endif /* NAME_HASH_H */ |