diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-06-24 16:39:15 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-24 16:39:15 -0700 |
| commit | 107ed551030713e25933dc8e92ad8d67cff28ff6 (patch) | |
| tree | 6fca7a4ca78eef5a610b846f23b46fbebcbebcb9 /path.h | |
| parent | e5ff701d4ca9cb8a472f946846504d9e972c6262 (diff) | |
| parent | bf6a86236e829d08c92356e5c861193ccb516ef7 (diff) | |
| download | git-107ed551030713e25933dc8e92ad8d67cff28ff6.tar.xz | |
Merge branch 'jc/worktree-git-path'
Code cleanup.
* jc/worktree-git-path:
worktree_git_path(): move the declaration to path.h
Diffstat (limited to 'path.h')
| -rw-r--r-- | path.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4,6 +4,7 @@ struct repository; struct strbuf; struct string_list; +struct worktree; /* * The result to all functions which return statically allocated memory may be @@ -82,6 +83,14 @@ const char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); /* + * Similar to git_path() but can produce paths for a specified + * worktree instead of current one + */ +const char *worktree_git_path(const struct worktree *wt, + const char *fmt, ...) + __attribute__((format (printf, 2, 3))); + +/* * Return a path into the main repository's (the_repository) git directory. */ char *git_pathdup(const char *fmt, ...) |
