diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:00 +0200 |
commit | b6c6bfef31e1ffe3804e5a1ba5bfe9e7879eda92 (patch) | |
tree | 0766ef6113d10c42c6f7274cb810d6ad7c8cf6d7 /path.h | |
parent | Merge branch 'ps/refs-wo-the-repository' into ps/config-wo-the-repository (diff) | |
download | git-b6c6bfef31e1ffe3804e5a1ba5bfe9e7879eda92.tar.xz git-b6c6bfef31e1ffe3804e5a1ba5bfe9e7879eda92.zip |
path: expose `do_git_path()` as `repo_git_pathv()`
We're about to move functions of the "path" subsytem that do not use a
`struct repository` into "path.h" as static inlined functions. This will
require us to call `do_git_path()`, which is internal to "path.c".
Expose the function as `repo_git_pathv()` to prepare for the change.
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ char *repo_git_path(const struct repository *repo, __attribute__((format (printf, 2, 3))); /* + * Print a path into the git directory of repository `repo` into the provided + * buffer. + */ +void repo_git_pathv(const struct repository *repo, + const struct worktree *wt, struct strbuf *buf, + const char *fmt, va_list args); + +/* * Construct a path into the git directory of repository `repo` and append it * to the provided buffer `sb`. */ |