summaryrefslogtreecommitdiff
path: root/include/git2/config.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-05-17 14:59:23 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-05-17 14:59:23 +0200
commitf44cbec4799538b201c5e14419fac9cc1544882e (patch)
tree1f5ebfdd67386ca3de4db3d8d2f1b7d6d713cc0f /include/git2/config.h
parent32234541f6d1576149960aa272ccb7219b68ff01 (diff)
downloadlibgit2-f44cbec4799538b201c5e14419fac9cc1544882e.tar.gz
Add documentation for git_config_add_backend
Diffstat (limited to 'include/git2/config.h')
-rw-r--r--include/git2/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h
index 4e10a5c7a..9ae54f112 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -58,7 +58,14 @@ GIT_EXTERN(int) git_config_open_bare(git_config **cfg_out, const char *path);
GIT_EXTERN(int) git_config_open_global(git_config **cfg);
/**
+ * Add a config backend to an existing instance
*
+ * Note that the configuration will call the backend's ->free()
+ * function.
+ *
+ * @param cfg the configuration to add the backend to
+ * @param backend the backend to add
+ * @param priority the priority the backend should have
*/
GIT_EXTERN(int) git_config_add_backend(git_config *cfg, git_config_backend *backend, int priority);