Again, a minor detail, but since the return type of the function is an `int`, instead of returning as a boolean statement, I would slightly prefer `return root->len ? 0 : GIT_ENOTFOUND;` here.