File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 44struct repository ;
55struct strbuf ;
66struct string_list ;
7+ struct worktree ;
78
89/*
910 * The result to all functions which return statically allocated memory may be
@@ -81,6 +82,14 @@ void strbuf_repo_git_path(struct strbuf *sb,
8182const char * git_path (const char * fmt , ...)
8283 __attribute__((format (printf , 1 , 2 )));
8384
85+ /*
86+ * Similar to git_path() but can produce paths for a specified
87+ * worktree instead of current one
88+ */
89+ const char * worktree_git_path (const struct worktree * wt ,
90+ const char * fmt , ...)
91+ __attribute__((format (printf , 2 , 3 )));
92+
8493/*
8594 * Return a path into the main repository's (the_repository) git directory.
8695 */
Original file line number Diff line number Diff line change 2929#include "bisect.h"
3030#include "packfile.h"
3131#include "worktree.h"
32+ #include "path.h"
3233#include "read-cache.h"
3334#include "setup.h"
3435#include "sparse-index.h"
Original file line number Diff line number Diff line change @@ -175,14 +175,6 @@ int other_head_refs(each_ref_fn fn, void *cb_data);
175175int is_worktree_being_rebased (const struct worktree * wt , const char * target );
176176int is_worktree_being_bisected (const struct worktree * wt , const char * target );
177177
178- /*
179- * Similar to git_path() but can produce paths for a specified
180- * worktree instead of current one
181- */
182- const char * worktree_git_path (const struct worktree * wt ,
183- const char * fmt , ...)
184- __attribute__((format (printf , 2 , 3 )));
185-
186178/*
187179 * Return a refname suitable for access from the current ref store.
188180 */
You can’t perform that action at this time.
0 commit comments