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.
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 theInitialHead
pointer to pass a value down tolibgit2
however it was not being exposed through the managed classes. This change introduces anInitOptions
class to provide this optional parameter.