summaryrefslogtreecommitdiffstats
path: root/worktree.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-25 01:39:15 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-25 01:39:15 +0200
commit107ed551030713e25933dc8e92ad8d67cff28ff6 (patch)
tree6fca7a4ca78eef5a610b846f23b46fbebcbebcb9 /worktree.h
parentMerge branch 'tb/commit-graph-use-tempfile' (diff)
parentworktree_git_path(): move the declaration to path.h (diff)
downloadgit-107ed551030713e25933dc8e92ad8d67cff28ff6.tar.xz
git-107ed551030713e25933dc8e92ad8d67cff28ff6.zip
Merge branch 'jc/worktree-git-path'
Code cleanup. * jc/worktree-git-path: worktree_git_path(): move the declaration to path.h
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 7cc6d90e66..11279d0c8f 100644
--- a/worktree.h
+++ b/worktree.h
@@ -178,14 +178,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,