https://github.com/git/git
Raw File
Tip revision: ae3196a5ea84a9e88991d576020cf66512487088 authored by Junio C Hamano on 19 April 2024, 16:11:41 UTC
Git 2.45-rc0
Tip revision: ae3196a
name-hash.h
#ifndef NAME_HASH_H
#define NAME_HASH_H

struct cache_entry;
struct index_state;


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)

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);

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 */
back to top