worktree: refactor find_linked_symref function
[git/git-svn.git] / worktree.h
blob71b14092c4b331a0a1ae2a32c71632c2ceffbd58
1 #ifndef WORKTREE_H
2 #define WORKTREE_H
4 /*
5 * Check if a per-worktree symref points to a ref in the main worktree
6 * or any linked worktree, and return the path to the exising worktree
7 * if it is. Returns NULL if there is no existing ref. The caller is
8 * responsible for freeing the returned path.
9 */
10 extern char *find_shared_symref(const char *symref, const char *target);
12 #endif