From 598019769cbaa38495b0c04297efa13d0f4a572e Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 20 Mar 2017 21:21:27 -0400 Subject: prefix_filename: move docstring to header file This is a public function, so we should make its documentation available near the declaration. While we're at it, we can give a few details about how it works. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- abspath.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'abspath.c') diff --git a/abspath.c b/abspath.c index b02e068aa3..fd30aff08f 100644 --- a/abspath.c +++ b/abspath.c @@ -246,11 +246,6 @@ char *absolute_pathdup(const char *path) return strbuf_detach(&sb, NULL); } -/* - * Unlike prefix_path, this should be used if the named file does - * not have to interact with index entry; i.e. name of a random file - * on the filesystem. - */ const char *prefix_filename(const char *pfx, int pfx_len, const char *arg) { static struct strbuf path = STRBUF_INIT; -- cgit v1.2.3