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 @@ -177,14 +177,6 @@ int other_head_refs(each_ref_fn fn, void *cb_data);
177
177
int is_worktree_being_rebased (const struct worktree * wt , const char * target );
178
178
int is_worktree_being_bisected (const struct worktree * wt , const char * target );
179
179
180
- /*
181
- * Similar to git_path() but can produce paths for a specified
182
- * worktree instead of current one
183
- */
184
- const char * worktree_git_path (const struct worktree * wt ,
185
- const char * fmt , ...)
186
- __attribute__((format (printf , 2 , 3 )));
187
-
188
180
/*
189
181
* Return a refname suitable for access from the current ref store.
190
182
*/
You can’t perform that action at this time.
0 commit comments