mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 08:53:48 +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. |
||
---|---|---|
.. | ||
network | ||
test | ||
.gitignore | ||
add.c | ||
cat-file.c | ||
CMakeLists.txt | ||
diff.c | ||
general.c | ||
init.c | ||
log.c | ||
Makefile | ||
README.md | ||
rev-list.c | ||
rev-parse.c | ||
showindex.c | ||
status.c |
libgit2 examples
These examples are meant as thin, easy-to-read snippets for Docurium (https://github.com/github/docurium) rather than full-blown implementations of Git commands. They are not vetted as carefully for bugs, error handling, or cross-platform compatibility as the rest of the code in libgit2, so copy with some caution.
For HTML versions, check "Examples" at http://libgit2.github.com/libgit2