| 869 | } |
| 870 | |
| 871 | const struct submodule *submodule_from_path(struct repository *r, |
| 872 | const struct object_id *treeish_name, |
| 873 | const char *path) |
| 874 | { |
| 875 | repo_read_gitmodules(r, 1); |
| 876 | return config_from(r->submodule_cache, treeish_name, path, lookup_path); |
| 877 | } |
| 878 | |
| 879 | /** |
| 880 | * Used internally by submodules_of_tree(). Recurses into 'treeish_name' |