Skip to content

Commit d086864

Browse files
committed
config: use git_config_file in favor of struct config_file
1 parent 8ee3d39 commit d086864

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/config_file.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct {
4444
git_filebuf locked_buf;
4545
git_buf locked_content;
4646

47-
struct config_file file;
47+
git_config_file file;
4848
} diskfile_backend;
4949

5050
typedef struct {
@@ -95,9 +95,9 @@ static git_config_entries *diskfile_entries_take(diskfile_header *h)
9595
return entries;
9696
}
9797

98-
static void config_file_clear(struct config_file *file)
98+
static void config_file_clear(git_config_file *file)
9999
{
100-
struct config_file *include;
100+
git_config_file *include;
101101
uint32_t i;
102102

103103
if (file == NULL)
@@ -133,7 +133,7 @@ static int config_open(git_config_backend *cfg, git_config_level_t level, const
133133
return res;
134134
}
135135

136-
static int config_is_modified(int *modified, struct config_file *file)
136+
static int config_is_modified(int *modified, git_config_file *file)
137137
{
138138
git_config_file *include;
139139
git_buf buf = GIT_BUF_INIT;
@@ -659,7 +659,7 @@ static char *escape_value(const char *ptr)
659659
static int parse_include(git_config_parser *reader,
660660
diskfile_parse_state *parse_data, const char *file)
661661
{
662-
struct config_file *include;
662+
git_config_file *include;
663663
git_buf path = GIT_BUF_INIT;
664664
char *dir;
665665
int result;

src/config_parse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ typedef struct config_file {
2222
} git_config_file;
2323

2424
typedef struct {
25-
struct config_file *file;
25+
git_config_file *file;
2626
git_parse_ctx ctx;
2727
} git_config_parser;
2828

0 commit comments

Comments
 (0)