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:
Stefan Beller
2018-03-28 15:35:28 -07:00
committed by Junio C Hamano
parent 6856077ab0
commit f793b895fd
6 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ Data Structures
Functions
---------
`void submodule_free()`::
`void submodule_free(struct repository *r)`::
Use these to free the internally cached values.