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 <rb@github.com>2012-08-03 00:00:58 +0400
committerRussell Belfer <rb@github.com>2012-08-24 22:00:26 +0400
commitaa13bf05c84f10f364ce35c5d4f989337b36e043 (patch)
treeca5877bd006a6bfdcd9aad5587e36e89523d6cd2 /src/config_file.h
parentdecff7b4c13939e5f00d51aea4176fc543d73ede (diff)
Major submodule rewrite
This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
Diffstat (limited to 'src/config_file.h')
-rw-r--r--src/config_file.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config_file.h b/src/config_file.h
index c31292881..bf687b516 100644
--- a/src/config_file.h
+++ b/src/config_file.h
@@ -19,12 +19,24 @@ GIT_INLINE(void) git_config_file_free(git_config_file *cfg)
cfg->free(cfg);
}
+GIT_INLINE(int) git_config_file_get_string(
+ const char **out, git_config_file *cfg, const char *name)
+{
+ return cfg->get(cfg, name, out);
+}
+
GIT_INLINE(int) git_config_file_set_string(
git_config_file *cfg, const char *name, const char *value)
{
return cfg->set(cfg, name, value);
}
+GIT_INLINE(int) git_config_file_delete(
+ git_config_file *cfg, const char *name)
+{
+ return cfg->del(cfg, name);
+}
+
GIT_INLINE(int) git_config_file_foreach(
git_config_file *cfg,
int (*fn)(const char *key, const char *value, void *data),