diff options
Diffstat (limited to 'path.h')
-rw-r--r-- | path.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -95,11 +95,13 @@ const char *git_path(const char *fmt, ...) /* * Similar to git_path() but can produce paths for a specified - * worktree instead of current one + * worktree instead of current one. When no worktree is given, then the path is + * computed relative to main worktree of the given repository. */ -const char *worktree_git_path(const struct worktree *wt, +const char *worktree_git_path(struct repository *r, + const struct worktree *wt, const char *fmt, ...) - __attribute__((format (printf, 2, 3))); + __attribute__((format (printf, 3, 4))); /* * Return a path into the main repository's (the_repository) git directory. |