submodule-config: allow submodule_free to handle arbitrary repositories
At some point we may want to rename the function so that it describes what it actually does as 'submodule_free' doesn't quite describe that this clears a repository's submodule cache. But that's beyond the scope of this series. While at it remove the extern key word from its declaration. Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6856077ab0
commit
f793b895fd
@ -46,6 +46,6 @@ extern const struct submodule *submodule_from_path(
|
||||
extern const struct submodule *submodule_from_cache(struct repository *repo,
|
||||
const struct object_id *treeish_name,
|
||||
const char *key);
|
||||
extern void submodule_free(void);
|
||||
void submodule_free(struct repository *r);
|
||||
|
||||
#endif /* SUBMODULE_CONFIG_H */
|
||||
|
||||
Reference in New Issue
Block a user