]> git.ipfire.org Git - thirdparty/git.git/blobdiff - worktree.h
hash-ll.h: split out of hash.h to remove dependency on repository.h
[thirdparty/git.git] / worktree.h
index 2baeca2a8a602e57a734c3af1b514ecd94ec1eb3..ce45b66de9e82d4d619b6f74e0e77c8bd5ab3f53 100644 (file)
@@ -148,6 +148,12 @@ const struct worktree *find_shared_symref(struct worktree **worktrees,
                                          const char *symref,
                                          const char *target);
 
+/*
+ * Returns true if a symref points to a ref in a worktree.
+ */
+int is_shared_symref(const struct worktree *wt,
+                    const char *symref, const char *target);
+
 /*
  * Similar to head_ref() for all HEADs _except_ one from the current
  * worktree, which is covered by head_ref().