summaryrefslogtreecommitdiffstats
path: root/submodule-config.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-28 15:35:28 -0700
committerJunio C Hamano <gitster@pobox.com>2018-03-29 09:44:50 -0700
commitf793b895fd752e37301702eaff948a40e7c0a4b8 (patch)
tree423cfe2800289f3f40a595500f50aabd267b1c2e /submodule-config.h
parent6856077ab063f16b4ccacff971c3ebb185935465 (diff)
downloadgit-f793b895fd752e37301702eaff948a40e7c0a4b8.tar.gz
git-f793b895fd752e37301702eaff948a40e7c0a4b8.tar.xz
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>
Diffstat (limited to 'submodule-config.h')
-rw-r--r--submodule-config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule-config.h b/submodule-config.h
index a5503a5d1..6b71a8cd3 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -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 */