diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-05-10 23:04:59 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-05-11 01:29:22 +0100 |
| commit | d525e063ba4e478cc4afac4cdf60f7acd989dbf2 (patch) | |
| tree | 40cad165fb5324ae430ebccdf7a1cc7de6687472 /src/config_parse.c | |
| parent | 4bd172087c30e09e7720a7df11cace47ee002256 (diff) | |
| download | libgit2-d525e063ba4e478cc4afac4cdf60f7acd989dbf2.tar.gz | |
buf: remove internal `git_buf_text` namespace
The `git_buf_text` namespace is unnecessary and strange. Remove it,
just keep the functions prefixed with `git_buf`.
Diffstat (limited to 'src/config_parse.c')
| -rw-r--r-- | src/config_parse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/config_parse.c b/src/config_parse.c index 7da92d3e7..ea32c36ba 100644 --- a/src/config_parse.c +++ b/src/config_parse.c @@ -7,8 +7,6 @@ #include "config_parse.h" -#include "buf_text.h" - #include <ctype.h> const char *git_config_escapes = "ntb\"\\"; @@ -231,7 +229,7 @@ static int skip_bom(git_parse_ctx *parser) { git_buf buf = GIT_BUF_INIT_CONST(parser->content, parser->content_len); git_bom_t bom; - int bom_offset = git_buf_text_detect_bom(&bom, &buf); + int bom_offset = git_buf_detect_bom(&bom, &buf); if (bom == GIT_BOM_UTF8) git_parse_advance_chars(parser, bom_offset); |
