summaryrefslogtreecommitdiff
path: root/include/git2/config.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-22 16:03:35 -0700
committerRussell Belfer <rb@github.com>2012-08-22 16:16:42 -0700
commit85bd17462662905dfdf9247b262480280a616ad4 (patch)
tree88454804c539284aa6cb216943d0a53b7cde211b /include/git2/config.h
parentb769e936d0118b7c3870ffc082b44254164bfedd (diff)
downloadlibgit2-85bd17462662905dfdf9247b262480280a616ad4.tar.gz
Some cleanup suggested during review
This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
Diffstat (limited to 'include/git2/config.h')
-rw-r--r--include/git2/config.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/git2/config.h b/include/git2/config.h
index 58a23833b..21d8a0b05 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -80,27 +80,16 @@ GIT_EXTERN(int) git_config_find_global(char *global_config_path, size_t length);
GIT_EXTERN(int) git_config_find_system(char *system_config_path, size_t length);
/**
- * Open the global configuration file
- *
- * Utility wrapper that calls `git_config_find_global`
- * and opens the located file, if it exists.
- *
- * @param out Pointer to store the config instance
- * @return 0 or an error code
- */
-GIT_EXTERN(int) git_config_open_global(git_config **out);
-
-/**
* Open the global and system configuration files
*
* Utility wrapper that finds the global and system configuration files
* and opens them into a single prioritized config object that can be
- * used when accessing config data outside a repository.
+ * used when accessing default config data outside a repository.
*
* @param out Pointer to store the config instance
* @return 0 or an error code
*/
-GIT_EXTERN(int) git_config_open_outside_repo(git_config **out);
+GIT_EXTERN(int) git_config_open_default(git_config **out);
/**
* Create a configuration file backend for ondisk files