cache.h: document remove_index_entry_at
Do this by moving the existing documentation from read-cache.c to cache.h. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Jan 18, 2017 at 19:18 UTC
3bd72adff1f4435898508f5c74227aaa2561c182
2 files changed
+3
-1
cache.h
+3
@@ -603,7 +603,10 @@ extern int index_name_pos(const struct index_state *, const char *name, int name
603
#define ADD_CACHE_KEEP_CACHE_TREE 32 /* Do not invalidate cache-tree */
604
extern int add_index_entry(struct index_state *, struct cache_entry *ce, int option);
605
extern void rename_index_entry_at(struct index_state *, int pos, const char *new_name);
606
+
607
+/* Remove entry, return true if there are more entries to go. */
608
extern int remove_index_entry_at(struct index_state *, int pos);
609
+
610
extern void remove_marked_cache_entries(struct index_state *istate);
611
extern int remove_file_from_index(struct index_state *, const char *path);
612
#define ADD_CACHE_VERBOSE 1
read-cache.c
-1
@@ -510,7 +510,6 @@ int index_name_pos(const struct index_state *istate, const char *name, int namel
510
return index_name_stage_pos(istate, name, namelen, 0);
511
}
512
513
-/* Remove entry, return true if there are more entries to go.. */
513
int remove_index_entry_at(struct index_state *istate, int pos)
514
{
515
struct cache_entry *ce = istate->cache[pos];