| 966 | } |
| 967 | |
| 968 | int print_config_from_gitmodules(struct repository *repo, const char *key) |
| 969 | { |
| 970 | int ret; |
| 971 | char *store_key; |
| 972 | |
| 973 | ret = git_config_parse_key(key, &store_key, NULL); |
| 974 | if (ret < 0) |
| 975 | return CONFIG_INVALID_KEY; |
| 976 | |
| 977 | config_from_gitmodules(config_print_callback, repo, store_key); |
| 978 | |
| 979 | free(store_key); |
| 980 | return 0; |
| 981 | } |
| 982 | |
| 983 | int config_set_in_gitmodules_file_gently(const char *key, const char *value) |
| 984 | { |