Skip to content

Commit 357e9c6

Browse files
committed
read-cache.c: mark a private file-scope symbol as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent ea03a8e commit 357e9c6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ extern int discard_index(struct index_state *);
442442
extern int unmerged_index(const struct index_state *);
443443
extern int verify_path(const char *path);
444444
extern struct cache_entry *index_name_exists(struct index_state *istate, const char *name, int namelen, int igncase);
445-
extern int index_name_stage_pos(const struct index_state *, const char *name, int namelen, int stage);
446445
extern int index_name_pos(const struct index_state *, const char *name, int namelen);
447446
#define ADD_CACHE_OK_TO_ADD 1 /* Ok to add */
448447
#define ADD_CACHE_OK_TO_REPLACE 2 /* Ok to replace file/directory */

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ int cache_name_compare(const char *name1, int len1, const char *name2, int len2)
424424
return cache_name_stage_compare(name1, len1, 0, name2, len2, 0);
425425
}
426426

427-
int index_name_stage_pos(const struct index_state *istate, const char *name, int namelen, int stage)
427+
static int index_name_stage_pos(const struct index_state *istate, const char *name, int namelen, int stage)
428428
{
429429
int first, last;
430430

0 commit comments

Comments
 (0)