libgit2sharp
libgit2sharp copied to clipboard
Add support to pass "initial head" on repo init
By default when initializing a new repository, the initial head is set to be whatever the globally configured value from init.defaultBranch. LibGit2Sharp was already exposing the InitialHead pointer to pass a value down to libgit2 however it was not being exposed through the managed classes.
This change introduces an InitOptions class to provide this optional parameter.
Resolves: https://github.com/libgit2/libgit2sharp/issues/1929