libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Add support to pass "initial head" on repo init

Open zentron opened this issue 4 years ago • 1 comments

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.

zentron avatar Nov 22 '21 07:11 zentron

Resolves: https://github.com/libgit2/libgit2sharp/issues/1929

zentron avatar Dec 03 '21 04:12 zentron