attr: retire git_check_attrs() API

Since nobody uses the old API, make it file-scope static, and update
the documentation to describe the new API.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2017-01-27 18:01:58 -08:00
parent 2aef63d31c
commit 1295c21524
3 changed files with 58 additions and 32 deletions

3
attr.c
View File

@ -890,7 +890,8 @@ static void collect_some_attrs(const char *path, int num,
rem = fill(path, pathlen, basename_offset, stk, rem);
}
int git_check_attrs(const char *path, int num, struct attr_check_item *check)
static int git_check_attrs(const char *path, int num,
struct attr_check_item *check)
{
int i;