repo: add git_repository_initialbranch
Provide a helper function to get the initial branch for a repository, respecting the `init.defaultBranch` configuration option, if set, and returning the "default default" (currently `master`) otherwise.
Showing
Please
register
or
sign in
to comment