Estimate the required stack size for getting latest change using libgit2