From f93895f8fcf1a45e594cd28c03b88a057382dc6b Mon Sep 17 00:00:00 2001 From: Barret Rhoden Date: Wed, 15 May 2019 17:44:57 -0400 Subject: Move oidset_parse_file() to oidset.c Signed-off-by: Barret Rhoden Signed-off-by: Junio C Hamano --- oidset.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'oidset.h') diff --git a/oidset.h b/oidset.h index c9d0f6d3cc..c4807749df 100644 --- a/oidset.h +++ b/oidset.h @@ -73,6 +73,14 @@ int oidset_remove(struct oidset *set, const struct object_id *oid); */ void oidset_clear(struct oidset *set); +/** + * Add the contents of the file 'path' to an initialized oidset. Each line is + * an unabbreviated object name. Comments begin with '#', and trailing comments + * are allowed. Leading whitespace and empty or white-space only lines are + * ignored. + */ +void oidset_parse_file(struct oidset *set, const char *path); + struct oidset_iter { kh_oid_t *set; khiter_t iter; -- cgit v1.2.3