Skip to content

Commit e2a175f

Browse files
stefanbellergitster
authored andcommitted
attr: make git_check_attr_counted static
It's not used outside the attr code, so let's keep it private. Signed-off-by: Stefan Beller <[email protected]>
1 parent 369c1a3 commit e2a175f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

attr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,8 @@ void git_attr_set_direction(enum git_attr_direction new, struct index_state *ist
892892
use_index = istate;
893893
}
894894

895-
int git_check_attr_counted(const char *path, int pathlen,
896-
struct git_attr_check *check)
895+
static int git_check_attr_counted(const char *path, int pathlen,
896+
struct git_attr_check *check)
897897
{
898898
check->finalized = 1;
899899
return git_check_attrs(path, pathlen, check);

attr.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ struct git_attr_check {
4141

4242
extern struct git_attr_check *git_attr_check_initl(const char *, ...);
4343
extern int git_check_attr(const char *path, struct git_attr_check *);
44-
extern int git_check_attr_counted(const char *, int, struct git_attr_check *);
4544

4645
extern struct git_attr_check *git_attr_check_alloc(void);
4746
extern struct git_attr_check_elem *git_attr_check_append(struct git_attr_check *, const struct git_attr *);

0 commit comments

Comments
 (0)