summaryrefslogtreecommitdiff
path: root/abspath.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-03-21 01:21:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-21 18:12:52 (GMT)
commit598019769cbaa38495b0c04297efa13d0f4a572e (patch)
tree2755340618d02a7027fe54f25a875e7caccaddc4 /abspath.c
parenta1be47e4ca65718ec239e4b86a44e45220237aee (diff)
downloadgit-598019769cbaa38495b0c04297efa13d0f4a572e.zip
git-598019769cbaa38495b0c04297efa13d0f4a572e.tar.gz
git-598019769cbaa38495b0c04297efa13d0f4a572e.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
-rw-r--r--abspath.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/abspath.c b/abspath.c
index b02e068..fd30aff 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;