index_state 368 attr.c static struct index_state *use_index; index_state 816 attr.c void git_attr_set_direction(enum git_attr_direction new, struct index_state *istate) index_state 55 attr.h void git_attr_set_direction(enum git_attr_direction, struct index_state *); index_state 3180 builtin/apply.c static int checkout_target(struct index_state *istate, index_state 3875 builtin/apply.c struct index_state result = { NULL }; index_state 149 cache-tree.c void cache_tree_invalidate_path(struct index_state *istate, const char *path) index_state 419 cache-tree.c int cache_tree_update(struct index_state *istate, int flags) index_state 595 cache-tree.c int write_index_as_tree(unsigned char *sha1, struct index_state *index_state, const char *index_path, int flags, const char *prefix) index_state 608 cache-tree.c entries = read_index_from(index_state, index_path); index_state 612 cache-tree.c cache_tree_free(&index_state->cache_tree); index_state 614 cache-tree.c if (!index_state->cache_tree) index_state 615 cache-tree.c index_state->cache_tree = cache_tree(); index_state 617 cache-tree.c was_valid = cache_tree_fully_valid(index_state->cache_tree); index_state 619 cache-tree.c if (cache_tree_update(index_state, flags) < 0) index_state 622 cache-tree.c if (!write_locked_index(index_state, lock_file, COMMIT_LOCK)) index_state 635 cache-tree.c subtree = cache_tree_find(index_state->cache_tree, prefix); index_state 641 cache-tree.c hashcpy(sha1, index_state->cache_tree->sha1); index_state 680 cache-tree.c void prime_cache_tree(struct index_state *istate, struct tree *tree) index_state 26 cache-tree.h void cache_tree_invalidate_path(struct index_state *, const char *); index_state 33 cache-tree.h int cache_tree_update(struct index_state *, int); index_state 49 cache-tree.h int write_index_as_tree(unsigned char *sha1, struct index_state *index_state, const char *index_path, int flags, const char *prefix); index_state 51 cache-tree.h void prime_cache_tree(struct index_state *, struct tree *); index_state 321 cache.h extern struct index_state the_index; index_state 324 cache.h extern void add_name_hash(struct index_state *istate, struct cache_entry *ce); index_state 325 cache.h extern void remove_name_hash(struct index_state *istate, struct cache_entry *ce); index_state 326 cache.h extern void free_name_hash(struct index_state *istate); index_state 511 cache.h extern int read_index(struct index_state *); index_state 512 cache.h extern int read_index_preload(struct index_state *, const struct pathspec *pathspec); index_state 513 cache.h extern int do_read_index(struct index_state *istate, const char *path, index_state 515 cache.h extern int read_index_from(struct index_state *, const char *path); index_state 516 cache.h extern int is_index_unborn(struct index_state *); index_state 517 cache.h extern int read_index_unmerged(struct index_state *); index_state 520 cache.h extern int write_locked_index(struct index_state *, struct lock_file *lock, unsigned flags); index_state 521 cache.h extern int discard_index(struct index_state *); index_state 522 cache.h extern int unmerged_index(const struct index_state *); index_state 524 cache.h extern int index_dir_exists(struct index_state *istate, const char *name, int namelen); index_state 525 cache.h extern void adjust_dirname_case(struct index_state *istate, char *name); index_state 526 cache.h extern struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int igncase); index_state 527 cache.h extern int index_name_pos(const struct index_state *, const char *name, int namelen); index_state 534 cache.h extern int add_index_entry(struct index_state *, struct cache_entry *ce, int option); index_state 535 cache.h extern void rename_index_entry_at(struct index_state *, int pos, const char *new_name); index_state 536 cache.h extern int remove_index_entry_at(struct index_state *, int pos); index_state 537 cache.h extern void remove_marked_cache_entries(struct index_state *istate); index_state 538 cache.h extern int remove_file_from_index(struct index_state *, const char *path); index_state 544 cache.h extern int add_to_index(struct index_state *, const char *path, struct stat *, int flags); index_state 545 cache.h extern int add_file_to_index(struct index_state *, const char *path, int flags); index_state 549 cache.h extern int index_name_is_other(const struct index_state *, const char *, int); index_state 550 cache.h extern void *read_blob_data_from_index(struct index_state *, const char *, unsigned long *); index_state 562 cache.h extern int ie_match_stat(const struct index_state *, const struct cache_entry *, struct stat *, unsigned int); index_state 563 cache.h extern int ie_modified(const struct index_state *, const struct cache_entry *, struct stat *, unsigned int); index_state 583 cache.h extern int match_stat_data_racy(const struct index_state *istate, index_state 594 cache.h extern int refresh_index(struct index_state *, unsigned int flags, const struct pathspec *pathspec, char *seen, const char *header_msg); index_state 596 cache.h extern void update_index_if_able(struct index_state *, struct lock_file *); index_state 1181 cache.h struct index_state *istate; index_state 2670 dir.c void untracked_cache_invalidate_path(struct index_state *istate, index_state 2679 dir.c void untracked_cache_remove_from_index(struct index_state *istate, index_state 2685 dir.c void untracked_cache_add_to_index(struct index_state *istate, index_state 303 dir.h void untracked_cache_invalidate_path(struct index_state *, const char *); index_state 304 dir.h void untracked_cache_remove_from_index(struct index_state *, const char *); index_state 305 dir.h void untracked_cache_add_to_index(struct index_state *, const char *); index_state 26 name-hash.c static struct dir_entry *find_dir_entry(struct index_state *istate, index_state 35 name-hash.c static struct dir_entry *hash_dir_entry(struct index_state *istate, index_state 70 name-hash.c static void add_dir_entry(struct index_state *istate, struct cache_entry *ce) index_state 78 name-hash.c static void remove_dir_entry(struct index_state *istate, struct cache_entry *ce) index_state 93 name-hash.c static void hash_index_entry(struct index_state *istate, struct cache_entry *ce) index_state 116 name-hash.c static void lazy_init_name_hash(struct index_state *istate) index_state 130 name-hash.c void add_name_hash(struct index_state *istate, struct cache_entry *ce) index_state 136 name-hash.c void remove_name_hash(struct index_state *istate, struct cache_entry *ce) index_state 183 name-hash.c int index_dir_exists(struct index_state *istate, const char *name, int namelen) index_state 192 name-hash.c void adjust_dirname_case(struct index_state *istate, char *name) index_state 215 name-hash.c struct cache_entry *index_file_exists(struct index_state *istate, const char *name, int namelen, int icase) index_state 231 name-hash.c void free_name_hash(struct index_state *istate) index_state 9 preload-index.c static void preload_index(struct index_state *index, index_state 29 preload-index.c struct index_state *index; index_state 38 preload-index.c struct index_state *index = p->index; index_state 70 preload-index.c static void preload_index(struct index_state *index, index_state 106 preload-index.c int read_index_preload(struct index_state *index, index_state 50 read-cache.c struct index_state the_index; index_state 53 read-cache.c static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce) index_state 59 read-cache.c static void replace_index_entry(struct index_state *istate, int nr, struct cache_entry *ce) index_state 71 read-cache.c void rename_index_entry_at(struct index_state *istate, int nr, const char *new_name) index_state 276 read-cache.c static int is_racy_stat(const struct index_state *istate, index_state 291 read-cache.c static int is_racy_timestamp(const struct index_state *istate, index_state 298 read-cache.c int match_stat_data_racy(const struct index_state *istate, index_state 306 read-cache.c int ie_match_stat(const struct index_state *istate, index_state 362 read-cache.c int ie_modified(const struct index_state *istate, index_state 484 read-cache.c static int index_name_stage_pos(const struct index_state *istate, const char *name, int namelen, int stage) index_state 505 read-cache.c int index_name_pos(const struct index_state *istate, const char *name, int namelen) index_state 511 read-cache.c int remove_index_entry_at(struct index_state *istate, int pos) index_state 533 read-cache.c void remove_marked_cache_entries(struct index_state *istate) index_state 552 read-cache.c int remove_file_from_index(struct index_state *istate, const char *path) index_state 569 read-cache.c static int index_name_pos_also_unmerged(struct index_state *istate, index_state 607 read-cache.c static struct cache_entry *create_alias_ce(struct index_state *istate, index_state 634 read-cache.c int add_to_index(struct index_state *istate, const char *path, struct stat *st, int flags) index_state 724 read-cache.c int add_file_to_index(struct index_state *istate, const char *path, int flags) index_state 836 read-cache.c static int has_file_name(struct index_state *istate, index_state 869 read-cache.c static int has_dir_name(struct index_state *istate, index_state 943 read-cache.c static int check_file_directory_conflict(struct index_state *istate, index_state 969 read-cache.c static int add_index_entry_with_check(struct index_state *istate, struct cache_entry *ce, int option) index_state 1020 read-cache.c int add_index_entry(struct index_state *istate, struct cache_entry *ce, int option) index_state 1059 read-cache.c static struct cache_entry *refresh_cache_ent(struct index_state *istate, index_state 1165 read-cache.c int refresh_index(struct index_state *istate, unsigned int flags, index_state 1368 read-cache.c static int read_index_extension(struct index_state *istate, index_state 1403 read-cache.c int read_index(struct index_state *istate) index_state 1501 read-cache.c static void check_ce_order(struct index_state *istate) index_state 1524 read-cache.c int do_read_index(struct index_state *istate, const char *path, int must_exist) index_state 1616 read-cache.c int read_index_from(struct index_state *istate, const char *path) index_state 1650 read-cache.c int is_index_unborn(struct index_state *istate) index_state 1655 read-cache.c int discard_index(struct index_state *istate) index_state 1685 read-cache.c int unmerged_index(const struct index_state *istate) index_state 1905 read-cache.c static int verify_index_from(const struct index_state *istate, const char *path) index_state 1940 read-cache.c static int verify_index(const struct index_state *istate) index_state 1945 read-cache.c static int has_racy_timestamp(struct index_state *istate) index_state 1961 read-cache.c void update_index_if_able(struct index_state *istate, struct lock_file *lockfile) index_state 1969 read-cache.c static int do_write_index(struct index_state *istate, int newfd, index_state 2100 read-cache.c static int do_write_locked_index(struct index_state *istate, struct lock_file *lock, index_state 2116 read-cache.c static int write_split_index(struct index_state *istate, index_state 2129 read-cache.c static int write_shared_index(struct index_state *istate, index_state 2153 read-cache.c int write_locked_index(struct index_state *istate, struct lock_file *lock, index_state 2186 read-cache.c int read_index_unmerged(struct index_state *istate) index_state 2223 read-cache.c int index_name_is_other(const struct index_state *istate, const char *name, index_state 2242 read-cache.c void *read_blob_data_from_index(struct index_state *istate, const char *path, unsigned long *size) index_state 7 resolve-undo.c void record_resolve_undo(struct index_state *istate, struct cache_entry *ce) index_state 105 resolve-undo.c void resolve_undo_clear_index(struct index_state *istate) index_state 116 resolve-undo.c int unmerge_index_entry_at(struct index_state *istate, int pos) index_state 165 resolve-undo.c void unmerge_marked_index(struct index_state *istate) index_state 179 resolve-undo.c void unmerge_index(struct index_state *istate, const struct pathspec *pathspec) index_state 9 resolve-undo.h extern void record_resolve_undo(struct index_state *, struct cache_entry *); index_state 12 resolve-undo.h extern void resolve_undo_clear_index(struct index_state *); index_state 13 resolve-undo.h extern int unmerge_index_entry_at(struct index_state *, int); index_state 14 resolve-undo.h extern void unmerge_index(struct index_state *, const struct pathspec *); index_state 15 resolve-undo.h extern void unmerge_marked_index(struct index_state *); index_state 5 split-index.c struct split_index *init_split_index(struct index_state *istate) index_state 14 split-index.c int read_link_extension(struct index_state *istate, index_state 45 split-index.c struct index_state *istate) index_state 56 split-index.c static void mark_base_index_entries(struct index_state *base) index_state 70 split-index.c void move_cache_to_base_index(struct index_state *istate) index_state 95 split-index.c struct index_state *istate = data; index_state 105 split-index.c struct index_state *istate = data; index_state 131 split-index.c void merge_base_index(struct index_state *istate) index_state 179 split-index.c void prepare_to_write_split_index(struct index_state *istate) index_state 267 split-index.c void finish_writing_split_index(struct index_state *istate) index_state 280 split-index.c void discard_split_index(struct index_state *istate) index_state 296 split-index.c void save_or_free_index_entry(struct index_state *istate, struct cache_entry *ce) index_state 308 split-index.c void replace_index_entry_in_base(struct index_state *istate, index_state 4 split-index.h struct index_state; index_state 10 split-index.h struct index_state *base; index_state 20 split-index.h struct split_index *init_split_index(struct index_state *istate); index_state 21 split-index.h void save_or_free_index_entry(struct index_state *istate, struct cache_entry *ce); index_state 22 split-index.h void replace_index_entry_in_base(struct index_state *istate, index_state 25 split-index.h int read_link_extension(struct index_state *istate, index_state 28 split-index.h struct index_state *istate); index_state 29 split-index.h void move_cache_to_base_index(struct index_state *istate); index_state 30 split-index.h void merge_base_index(struct index_state *istate); index_state 31 split-index.h void prepare_to_write_split_index(struct index_state *istate); index_state 32 split-index.h void finish_writing_split_index(struct index_state *istate); index_state 33 split-index.h void discard_split_index(struct index_state *istate); index_state 59 test-dump-cache-tree.c struct index_state istate; index_state 192 unpack-trees.c struct index_state *index = &o->result; index_state 249 unpack-trees.c static int apply_sparse_checkout(struct index_state *istate, index_state 332 unpack-trees.c static void mark_all_ce_unused(struct index_state *index) index_state 342 unpack-trees.c struct index_state *index = o->src_index; index_state 358 unpack-trees.c struct index_state *index = o->src_index; index_state 373 unpack-trees.c const struct index_state *index = o->src_index; index_state 388 unpack-trees.c struct index_state *index = o->src_index; index_state 645 unpack-trees.c struct index_state *index = o->src_index; index_state 975 unpack-trees.c struct index_state *the_index, index_state 70 unpack-trees.h struct index_state *dst_index; index_state 71 unpack-trees.h struct index_state *src_index; index_state 72 unpack-trees.h struct index_state result;