diff options
| author | Vicent Martà <vicent@github.com> | 2012-11-29 00:00:32 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-11-29 00:00:32 -0800 |
| commit | e7da560af4553dd989e3860aacf2578d6569296e (patch) | |
| tree | dcc8a92ce69b2a0d9d8cca98d67f0cc71177ce40 /src/pathspec.c | |
| parent | 693021262ba0eeac2923bbce1b2262717019c807 (diff) | |
| parent | 7bf87ab6987cf6b9e166e23d2d9dbdcd2511fb32 (diff) | |
| download | libgit2-e7da560af4553dd989e3860aacf2578d6569296e.tar.gz | |
Merge pull request #1088 from arrbee/consolidate-text-functions
Consolidate text buffer functions
Diffstat (limited to 'src/pathspec.c')
| -rw-r--r-- | src/pathspec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index fc6547afe..993b44667 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -6,6 +6,7 @@ */ #include "pathspec.h" +#include "buf_text.h" #include "attr_file.h" /* what is the common non-wildcard prefix for all items in the pathspec */ @@ -15,7 +16,7 @@ char *git_pathspec_prefix(const git_strarray *pathspec) const char *scan; if (!pathspec || !pathspec->count || - git_buf_common_prefix(&prefix, pathspec) < 0) + git_buf_text_common_prefix(&prefix, pathspec) < 0) return NULL; /* diff prefix will only be leading non-wildcards */ @@ -31,7 +32,7 @@ char *git_pathspec_prefix(const git_strarray *pathspec) return NULL; } - git_buf_unescape(&prefix); + git_buf_text_unescape(&prefix); return git_buf_detach(&prefix); } |
