diff options
| author | Russell Belfer <rb@github.com> | 2012-08-22 16:03:35 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-08-22 16:16:42 -0700 |
| commit | 85bd17462662905dfdf9247b262480280a616ad4 (patch) | |
| tree | 88454804c539284aa6cb216943d0a53b7cde211b /src/config.c | |
| parent | b769e936d0118b7c3870ffc082b44254164bfedd (diff) | |
| download | libgit2-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 'src/config.c')
| -rw-r--r-- | src/config.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/config.c b/src/config.c index 3ca49714c..277daaafe 100644 --- a/src/config.c +++ b/src/config.c @@ -501,21 +501,7 @@ int git_config_find_system(char *system_config_path, size_t length) return 0; } -int git_config_open_global(git_config **out) -{ - int error; - git_buf path = GIT_BUF_INIT; - - if ((error = git_config_find_global_r(&path)) < 0) - return error; - - error = git_config_open_ondisk(out, git_buf_cstr(&path)); - git_buf_free(&path); - - return error; -} - -int git_config_open_outside_repo(git_config **out) +int git_config_open_default(git_config **out) { int error; git_config *cfg = NULL; |
