summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-11-17 12:34:15 -0800
committernulltoken <emeric.fermas@gmail.com>2012-11-17 12:34:15 -0800
commitd36451c9d4ba071de07106371553bf93f2717fc4 (patch)
treea7d6e6b3aeaee22f1f3ff33523499f811d0c7f30 /src/config.h
parent6091457e76638503fec46de269bc158f63e4721a (diff)
downloadlibgit2-d36451c9d4ba071de07106371553bf93f2717fc4.tar.gz
config: Make git_config_file__ondisk() internal
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index a0569ec93..c7595ee79 100644
--- a/src/config.h
+++ b/src/config.h
@@ -32,4 +32,17 @@ extern int git_config_rename_section(
const char *old_section_name, /* eg "branch.dummy" */
const char *new_section_name); /* NULL to drop the old section */
+/**
+ * Create a configuration file backend for ondisk files
+ *
+ * These are the normal `.gitconfig` files that Core Git
+ * processes. Note that you first have to add this file to a
+ * configuration object before you can query it for configuration
+ * variables.
+ *
+ * @param out the new backend
+ * @param path where the config file is located
+ */
+extern int git_config_file__ondisk(struct git_config_file **out, const char *path);
+
#endif