Please support the git_submodule_branch() API, so that the branch attributes inside ".gitmodules" can be retrieved. Information about the API: https://libgit2.github.com/libgit2/#HEAD/group/submodule/git_submodule_branch Thanks