summaryrefslogtreecommitdiff
path: root/src/pathspec.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/pathspec.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/pathspec.c')
-rw-r--r--src/pathspec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pathspec.c b/src/pathspec.c
index 8b17a6e27..8f1bdf0fa 100644
--- a/src/pathspec.c
+++ b/src/pathspec.c
@@ -9,7 +9,6 @@
#include "git2/pathspec.h"
#include "git2/diff.h"
-#include "buf_text.h"
#include "attr_file.h"
#include "iterator.h"
#include "repository.h"
@@ -25,7 +24,7 @@ char *git_pathspec_prefix(const git_strarray *pathspec)
const char *scan;
if (!pathspec || !pathspec->count ||
- git_buf_text_common_prefix(&prefix, pathspec) < 0)
+ git_buf_common_prefix(&prefix, pathspec) < 0)
return NULL;
/* diff prefix will only be leading non-wildcards */
@@ -41,7 +40,7 @@ char *git_pathspec_prefix(const git_strarray *pathspec)
return NULL;
}
- git_buf_text_unescape(&prefix);
+ git_buf_unescape(&prefix);
return git_buf_detach(&prefix);
}