Skip to content

Commit 355b02a

Browse files
committed
config: rename subsection header parser func
The `parse_section_header_ext` name suggests that it as an extended function for parsing the section header. It is not. Rename it to `parse_subsection_header` to better reflect its true mission.
1 parent 23c5699 commit 355b02a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config_parse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static int strip_comments(char *line, int in_quotes)
6666
}
6767

6868

69-
static int parse_section_header_ext(git_config_parser *reader, const char *line, size_t pos, const char *base_name, char **section_name)
69+
static int parse_subsection_header(git_config_parser *reader, const char *line, size_t pos, const char *base_name, char **section_name)
7070
{
7171
int c, rpos;
7272
const char *first_quote, *last_quote;
@@ -191,7 +191,7 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
191191
do {
192192
if (git__isspace(c)){
193193
name[name_length] = '\0';
194-
result = parse_section_header_ext(reader, line, pos, name, section_out);
194+
result = parse_subsection_header(reader, line, pos, name, section_out);
195195
git__free(line);
196196
git__free(name);
197197
return result;

0 commit comments

Comments
 (0)