Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-29 03:45:36 +0400
committerRussell Belfer <arrbee@arrbee.com>2012-03-29 03:45:36 +0400
commitbfc9ca595aa2f189743f2a7b9812f05def78ec88 (patch)
treebfb9ade537f03433d1d1876045e4c5f2d56f3ccc /src/repository.h
parent277e304149011bb615ae258e25492350cbfd4d46 (diff)
Added submodule API and use in status
When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule.
Diffstat (limited to 'src/repository.h')
-rw-r--r--src/repository.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/repository.h b/src/repository.h
index b5dcc1340..6586bb43e 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -83,6 +83,7 @@ struct git_repository {
git_cache objects;
git_refcache references;
git_attr_cache attrcache;
+ git_hashtable *submodules;
char *path_repository;
char *workdir;
@@ -120,4 +121,9 @@ int git_repository_index__weakptr(git_index **out, git_repository *repo);
int git_repository__cvar(int *out, git_repository *repo, git_cvar_cached cvar);
void git_repository__cvar_cache_clear(git_repository *repo);
+/*
+ * Submodule cache
+ */
+extern void git_submodule_config_free(git_repository *repo);
+
#endif