]> git.ipfire.org Git - thirdparty/git.git/blobdiff - branch.h
Merge branch 'ds/branch-checked-out'
[thirdparty/git.git] / branch.h
index 560b6b96a8f307baac31ea699321e17ed2c22dbe..ef56103c050fa09d6087e2bade7f24240d79ae04 100644 (file)
--- a/branch.h
+++ b/branch.h
@@ -101,6 +101,13 @@ void create_branches_recursively(struct repository *r, const char *name,
                                 const char *tracking_name, int force,
                                 int reflog, int quiet, enum branch_track track,
                                 int dry_run);
+
+/*
+ * If the branch at 'refname' is currently checked out in a worktree,
+ * then return the path to that worktree.
+ */
+const char *branch_checked_out(const char *refname);
+
 /*
  * Check if 'name' can be a valid name for a branch; die otherwise.
  * Return 1 if the named branch already exists; return 0 otherwise.