Lookup submodule information by name or path.
Given either the submodule name or path (they are usually the same), this returns a structure describing the submodule.
There are two expected error scenarios:
You must call git_submodule_free
when done with the submodule.
The name of or path to the submodule; trailing slashes okay
0 on success, GIT_ENOTFOUND if submodule does not exist, GIT_EEXISTS if a repository is found in working directory only, -1 on other errors.