diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-07-11 11:00:05 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-07-11 11:00:05 +0200 |
commit | 6e6da75fdb3c5d53c8df94d551aa9e6b9f4d8957 (patch) | |
tree | 5327e729a1ed571f19ed6909968027d9b33cf5e9 /src/config_parse.h | |
parent | 54d350e05367a88874c291c6aa2c1801c5062031 (diff) | |
download | libgit2-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.h | 2 |
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; |