diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-22 11:43:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 18:24:34 -0700 |
commit | b42b0c09199db794b2a34ae9ce293d6711fb6a4f (patch) | |
tree | dde62fe0f95a623d1780e8ceee3872ec828639ea /path.h | |
parent | 3181d86320f748b7b4f7a7133f2127e825eed702 (diff) | |
download | git-b42b0c09199db794b2a34ae9ce293d6711fb6a4f.tar.gz |
path: add repo_worktree_path and strbuf_repo_worktree_path
Introduce 'repo_worktree_path' and 'strbuf_repo_worktree_path' which
take a repository struct and constructs a path relative to the
repository's worktree.
Signed-off-by: Brandon Williams <bmwill@google.com>
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
@@ -43,6 +43,14 @@ extern void strbuf_repo_git_path(struct strbuf *sb, const char *fmt, ...) __attribute__((format (printf, 3, 4))); +extern char *repo_worktree_path(const struct repository *repo, + const char *fmt, ...) + __attribute__((format (printf, 2, 3))); +extern void strbuf_repo_worktree_path(struct strbuf *sb, + const struct repository *repo, + const char *fmt, ...) + __attribute__((format (printf, 3, 4))); + extern void report_linked_checkout_garbage(void); /* |