merge-base --fork-point doc: clarify the example and failure modes
[gitweb.git] / worktree.h
index d59ce1fee875800462a1e464592fd9dd01828e17..6bfb985203070e3051f82348568840f5577bf0dc 100644 (file)
@@ -27,6 +27,11 @@ struct worktree {
  */
 extern struct worktree **get_worktrees(unsigned flags);
 
+/*
+ * Returns 1 if linked worktrees exist, 0 otherwise.
+ */
+extern int submodule_uses_worktrees(const char *path);
+
 /*
  * Return git dir of the worktree. Note that the path may be relative.
  * If wt is NULL, git dir of current worktree is returned.