diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-08-10 13:03:33 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-09-28 11:14:13 +0200 |
commit | b944e13782370844823fcdc712fefcde3bb3fe73 (patch) | |
tree | c683c316553c2ef40661f6119913d9b51de9e2cd /src/config_file.c | |
parent | 1aeff5d7c97eac81965d09b0fac8e89ddb6909be (diff) | |
download | libgit2-b944e13782370844823fcdc712fefcde3bb3fe73.tar.gz |
config: rename "config_file.h" to "config_backend.h"
The header "config_file.h" has a list of inline-functions to access the
contents of a config backend without directly messing with the struct's
function pointers. While all these functions are called
"git_config_file_*", they are in fact completely backend-agnostic and
don't care whether it is a file or not. Rename all the function to
instead be backend-agnostic versions called "git_config_backend_*" and
rename the header to match.
Diffstat (limited to 'src/config_file.c')
-rw-r--r-- | src/config_file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config_file.c b/src/config_file.c index fb88818b5..2eab04a22 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -5,9 +5,8 @@ * a Linking Exception. For full terms see the included COPYING file. */ -#include "config_file.h" - #include "config.h" + #include "filebuf.h" #include "sysdir.h" #include "buffer.h" @@ -676,7 +675,7 @@ static int config_unlock(git_config_backend *_cfg, int success) return error; } -int git_config_file__ondisk(git_config_backend **out, const char *path) +int git_config_backend_from_file(git_config_backend **out, const char *path) { diskfile_backend *backend; |