worktree move: accept destination as directory
[gitweb.git] / worktree.h
index cb577de8cd431b527be839e5de3c92c2d9963e37..a913428c3d62d5cfb94f47e9ae642f86af204087 100644 (file)
@@ -68,6 +68,12 @@ extern const char *is_worktree_locked(struct worktree *wt);
 extern int validate_worktree(const struct worktree *wt,
                             struct strbuf *errmsg);
 
+/*
+ * Update worktrees/xxx/gitdir with the new path.
+ */
+extern void update_worktree_location(struct worktree *wt,
+                                    const char *path_);
+
 /*
  * Free up the memory for worktree(s)
  */