444
#define read_cache() repo_read_index(the_repository)
445
#define read_cache_from(path) read_index_from(&the_index, (path), (get_git_dir()))
446
#define read_cache_preload(pathspec) repo_read_index_preload(the_repository, (pathspec), 0)
447
-#define is_cache_unborn() is_index_unborn(&the_index)
448
-#define read_cache_unmerged() repo_read_index_unmerged(the_repository)
447
#define discard_cache() discard_index(&the_index)
450
-#define unmerged_cache() unmerged_index(&the_index)
448
#define cache_name_pos(name, namelen) index_name_pos(&the_index,(name),(namelen))
449
#define add_cache_entry(ce, option) add_index_entry(&the_index, (ce), (option))
453
-#define rename_cache_entry_at(pos, new_name) rename_index_entry_at(&the_index, (pos), (new_name))
450
#define remove_file_from_cache(path) remove_file_from_index(&the_index, (path))
455
-#define add_to_cache(path, st, flags) add_to_index(&the_index, (path), (st), (flags))
456
-#define add_file_to_cache(path, flags) add_file_to_index(&the_index, (path), (flags))
457
-#define chmod_cache_entry(ce, flip) chmod_index_entry(&the_index, (ce), (flip))
451
#define refresh_cache(flags) refresh_index(&the_index, (flags), NULL, NULL, NULL)
452
#define refresh_and_write_cache(refresh_flags, write_flags, gentle) repo_refresh_and_write_index(the_repository, (refresh_flags), (write_flags), (gentle), NULL, NULL, NULL)
453
#define ce_match_stat(ce, st, options) ie_match_stat(&the_index, (ce), (st), (options))
454
#define ce_modified(ce, st, options) ie_modified(&the_index, (ce), (st), (options))
462
-#define cache_file_exists(name, namelen, igncase) index_file_exists(&the_index, (name), (namelen), (igncase))
463
-#define cache_name_is_other(name, namelen) index_name_is_other(&the_index, (name), (namelen))
455
#define resolve_undo_clear() resolve_undo_clear_index(&the_index)
465
-#define unmerge_cache_entry_at(at) unmerge_index_entry_at(&the_index, at)
456
#define hold_locked_index(lock_file, flags) repo_hold_locked_index(the_repository, (lock_file), (flags))
457
#endif
458