summaryrefslogtreecommitdiff
path: root/src/config_parse.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-07-11 11:00:05 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-11 11:00:05 +0200
commit6e6da75fdb3c5d53c8df94d551aa9e6b9f4d8957 (patch)
tree5327e729a1ed571f19ed6909968027d9b33cf5e9 /src/config_parse.h
parent54d350e05367a88874c291c6aa2c1801c5062031 (diff)
downloadlibgit2-6e6da75fdb3c5d53c8df94d551aa9e6b9f4d8957.tar.gz
config_parse: remove use of `git_config_file`
The config parser code needs to keep track of the current parsed file's name so that we are able to provide proper error messages to the user. Right now, we do that by storing a `git_config_file` in the parser structure, but as that is a specific backend and the parser aims to be generic, it is a layering violation. Switch over to use a simple string to fix that.
Diffstat (limited to 'src/config_parse.h')
-rw-r--r--src/config_parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_parse.h b/src/config_parse.h
index 3eef7d3cd..a25da9dd2 100644
--- a/src/config_parse.h
+++ b/src/config_parse.h
@@ -25,7 +25,7 @@ typedef struct config_file {
} git_config_file;
typedef struct {
- git_config_file *file;
+ const char *path;
git_parse_ctx ctx;
} git_config_parser;