summaryrefslogtreecommitdiff
path: root/src/diff_driver.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-05-10 23:04:59 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2021-05-11 01:29:22 +0100
commitd525e063ba4e478cc4afac4cdf60f7acd989dbf2 (patch)
tree40cad165fb5324ae430ebccdf7a1cc7de6687472 /src/diff_driver.c
parent4bd172087c30e09e7720a7df11cace47ee002256 (diff)
downloadlibgit2-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/diff_driver.c')
-rw-r--r--src/diff_driver.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/diff_driver.c b/src/diff_driver.c
index 6b19012c7..e9f63cb17 100644
--- a/src/diff_driver.c
+++ b/src/diff_driver.c
@@ -13,7 +13,6 @@
#include "diff.h"
#include "strmap.h"
#include "map.h"
-#include "buf_text.h"
#include "config.h"
#include "regexp.h"
#include "repository.h"
@@ -428,8 +427,8 @@ int git_diff_driver_content_is_binary(
* let's just use the simple NUL-byte detection that core git uses.
*/
- /* previously was: if (git_buf_text_is_binary(&search)) */
- if (git_buf_text_contains_nul(&search))
+ /* previously was: if (git_buf_is_binary(&search)) */
+ if (git_buf_contains_nul(&search))
return 1;
return 0;