aboutsummaryrefslogtreecommitdiff
path: root/worktree.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-08 11:39:01 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-08 11:42:37 -0700
commitbf6a86236e829d08c92356e5c861193ccb516ef7 (patch)
treebd1d8ae65b9ea3bb2cbf54935aefe2a1b4eb0a98 /worktree.h
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8 (diff)
downloadgit-bf6a86236e829d08c92356e5c861193ccb516ef7.tar.xz
worktree_git_path(): move the declaration to path.h
The definition of this function is in path.c but its declaration is in worktree.h, which is something unexpected. The function is explained as "Similar to git_path()"; declaring it next to where git_path() is declared would make more sense. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.h')
-rw-r--r--worktree.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/worktree.h b/worktree.h
index f14784a2ff..605ed6cb90 100644
--- a/worktree.h
+++ b/worktree.h
@@ -176,14 +176,6 @@ int is_worktree_being_rebased(const struct worktree *wt, const char *target);
int is_worktree_being_bisected(const struct worktree *wt, const char *target);
/*
- * 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 refname suitable for access from the current ref store.
*/
void strbuf_worktree_ref(const struct worktree *wt,