diff options
Diffstat (limited to 'branch.h')
-rw-r--r-- | branch.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -52,4 +52,11 @@ extern void install_branch_config(int flag, const char *local, const char *origi */ extern int read_branch_desc(struct strbuf *, const char *branch_name); +/* + * Check if a branch is checked out in the main worktree or any linked + * worktree and die (with a message describing its checkout location) if + * it is. + */ +extern void die_if_checked_out(const char *branch); + #endif |