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 4
4
struct repository ;
5
5
struct strbuf ;
6
6
struct string_list ;
7
+ struct worktree ;
7
8
8
9
/*
9
10
* The result to all functions which return statically allocated memory may be
@@ -81,6 +82,14 @@ void strbuf_repo_git_path(struct strbuf *sb,
81
82
const char * git_path (const char * fmt , ...)
82
83
__attribute__((format (printf , 1 , 2 )));
83
84
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
+
84
93
/*
85
94
* Return a path into the main repository's (the_repository) git directory.
86
95
*/
Original file line number Diff line number Diff line change 29
29
#include "bisect.h"
30
30
#include "packfile.h"
31
31
#include "worktree.h"
32
+ #include "path.h"
32
33
#include "read-cache.h"
33
34
#include "setup.h"
34
35
#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);
175
175
int is_worktree_being_rebased (const struct worktree * wt , const char * target );
176
176
int is_worktree_being_bisected (const struct worktree * wt , const char * target );
177
177
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
-
186
178
/*
187
179
* Return a refname suitable for access from the current ref store.
188
180
*/
You can’t perform that action at this time.
0 commit comments