diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-22 11:43:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 18:24:34 -0700 |
commit | 3181d86320f748b7b4f7a7133f2127e825eed702 (patch) | |
tree | 36d81a714445306e298932642ec2653be76ff8e1 /path.h | |
parent | 543107333b3ed004bee282a83a518c7550d5a393 (diff) | |
download | git-3181d86320f748b7b4f7a7133f2127e825eed702.tar.gz |
path: add repo_git_path and strbuf_repo_git_path
Introduce 'repo_git_path' and 'strbuf_repo_git_path' which take a
repository struct and constructs a path into the repository's git
directory.
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
@@ -35,6 +35,14 @@ extern char *mkpathdup(const char *fmt, ...) extern char *git_pathdup_submodule(const char *path, const char *fmt, ...) __attribute__((format (printf, 2, 3))); +extern char *repo_git_path(const struct repository *repo, + const char *fmt, ...) + __attribute__((format (printf, 2, 3))); +extern void strbuf_repo_git_path(struct strbuf *sb, + const struct repository *repo, + const char *fmt, ...) + __attribute__((format (printf, 3, 4))); + extern void report_linked_checkout_garbage(void); /* |