mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 02:40:09 +00:00

Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
7 lines
194 B
C
7 lines
194 B
C
#include "common.h"
|
|
|
|
#define NON_EXISTING_HEAD "refs/heads/hide/and/seek"
|
|
|
|
extern void make_head_unborn(git_repository* repo, const char *target);
|
|
extern void delete_head(git_repository* repo);
|