Skip to content

Commit 3bd72ad

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12733e9 commit 3bd72ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cache.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,10 @@ extern int index_name_pos(const struct index_state *, const char *name, int name
603603
#define ADD_CACHE_KEEP_CACHE_TREE 32 /* Do not invalidate cache-tree */
604604
extern int add_index_entry(struct index_state *, struct cache_entry *ce, int option);
605605
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. */
606608
extern int remove_index_entry_at(struct index_state *, int pos);
609+
607610
extern void remove_marked_cache_entries(struct index_state *istate);
608611
extern int remove_file_from_index(struct index_state *, const char *path);
609612
#define ADD_CACHE_VERBOSE 1

read-cache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ int index_name_pos(const struct index_state *istate, const char *name, int namel
510510
return index_name_stage_pos(istate, name, namelen, 0);
511511
}
512512

513-
/* Remove entry, return true if there are more entries to go.. */
514513
int remove_index_entry_at(struct index_state *istate, int pos)
515514
{
516515
struct cache_entry *ce = istate->cache[pos];

0 commit comments

Comments
 (0)