Skip to content

Commit d525e06

Browse files
committed
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`.
1 parent 4bd1720 commit d525e06

File tree

26 files changed

+461
-532
lines changed

26 files changed

+461
-532
lines changed

src/attr_file.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "repository.h"
1111
#include "filebuf.h"
1212
#include "attrcache.h"
13-
#include "buf_text.h"
1413
#include "git2/blob.h"
1514
#include "git2/tree.h"
1615
#include "blob.h"
@@ -192,7 +191,7 @@ int git_attr_file__load(
192191

193192
/* advance over a UTF8 BOM */
194193
content_str = git_buf_cstr(&content);
195-
bom_offset = git_buf_text_detect_bom(&bom, &content);
194+
bom_offset = git_buf_detect_bom(&bom, &content);
196195

197196
if (bom == GIT_BOM_UTF8)
198197
content_str += bom_offset;

src/blob.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#include "filebuf.h"
1616
#include "filter.h"
17-
#include "buf_text.h"
1817

1918
const void *git_blob_rawcontent(const git_blob *blob)
2019
{
@@ -401,7 +400,7 @@ int git_blob_is_binary(const git_blob *blob)
401400

402401
git_buf_attach_notowned(&content, git_blob_rawcontent(blob),
403402
(size_t)min(size, GIT_FILTER_BYTES_TO_CHECK_NUL));
404-
return git_buf_text_is_binary(&content);
403+
return git_buf_is_binary(&content);
405404
}
406405

407406
int git_blob_filter_options_init(

src/buf_text.c

Lines changed: 0 additions & 316 deletions
This file was deleted.

0 commit comments

Comments
 (0)