summaryrefslogtreecommitdiff
path: root/include/git2/config.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-11-17 13:39:24 -0800
committernulltoken <emeric.fermas@gmail.com>2012-11-17 18:30:34 -0800
commit270160b91a0e55486f2cb6a6238c39fcd1271809 (patch)
tree9ba94cc336c12c29955324b1d3572869154aab94 /include/git2/config.h
parentd36451c9d4ba071de07106371553bf93f2717fc4 (diff)
downloadlibgit2-270160b91a0e55486f2cb6a6238c39fcd1271809.tar.gz
config: Opening a nonexistent file returns ENOTFOUND
Diffstat (limited to 'include/git2/config.h')
-rw-r--r--include/git2/config.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/git2/config.h b/include/git2/config.h
index 8270aefa4..8ec78e35c 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -189,7 +189,8 @@ GIT_EXTERN(int) git_config_add_file(
* @param force if a config file already exists for the given
* priority level, replace it
* @return 0 on success, GIT_EEXISTS when adding more than one file
- * for a given priority level (and force_replace set to 0), or error code
+ * for a given priority level (and force_replace set to 0),
+ * GIT_ENOTFOUND when the file doesn't exist or error code
*/
GIT_EXTERN(int) git_config_add_file_ondisk(
git_config *cfg,
@@ -197,7 +198,6 @@ GIT_EXTERN(int) git_config_add_file_ondisk(
unsigned int level,
int force);
-
/**
* Create a new config instance containing a single on-disk file
*
@@ -206,11 +206,12 @@ GIT_EXTERN(int) git_config_add_file_ondisk(
* - git_config_new
* - git_config_add_file_ondisk
*
- * @param cfg The configuration instance to create
+ * @param out The configuration instance to create
* @param path Path to the on-disk file to open
- * @return 0 or an error code
+ * @return 0 on success, GIT_ENOTFOUND when the file doesn't exist
+ * or an error code
*/
-GIT_EXTERN(int) git_config_open_ondisk(git_config **cfg, const char *path);
+GIT_EXTERN(int) git_config_open_ondisk(git_config **out, const char *path);
/**
* Build a single-level focused config object from a multi-level one.