aboutsummaryrefslogtreecommitdiff
path: root/path.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-02-07 12:03:33 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-07 09:59:22 -0800
commit3859e3965993493defd39cd54a2ab2097957e270 (patch)
treeb7580f5967408af1e74e16f6407c613c471040d0 /path.h
parentbba59f58a4eeda6fafaa3d41e14f3d00a179923f (diff)
downloadgit-3859e3965993493defd39cd54a2ab2097957e270.tar.xz
path: drop `git_path_buf()` in favor of `repo_git_path_replace()`
Remove `git_path_buf()` in favor of `repo_git_path_replace()`. The latter does essentially the same, with the only exception that it does not rely on `the_repository` but takes the repo as separate parameter. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.h')
-rw-r--r--path.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/path.h b/path.h
index 65a8f21c4c..cdc26acb74 100644
--- a/path.h
+++ b/path.h
@@ -257,22 +257,6 @@ static inline const char *git_common_path(const char *fmt, ...)
}
/*
- * Construct a path into the main repository's (the_repository) git directory
- * and place it in the provided buffer `buf`, the contents of the buffer will
- * be overridden.
- */
-__attribute__((format (printf, 2, 3)))
-static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
-{
- va_list args;
- strbuf_reset(buf);
- va_start(args, fmt);
- repo_git_pathv(the_repository, NULL, buf, fmt, args);
- va_end(args);
- return buf->buf;
-}
-
-/*
* Return a statically allocated path into the main repository's
* (the_repository) git directory.
*/