diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-26 20:20:03 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-26 20:20:57 -0400 |
commit | 7e7cfe8acdc8e506a5e670e7cfb74e43c031ccaf (patch) | |
tree | fedcb7be8c2b7c200e2fdbe5f9219ca8f567d649 /src/pathspec.c | |
parent | 136901086ecfdd2b5cc106782310355a9c0b1a9a (diff) | |
download | libgit2-ethomson/strarray.tar.gz |
buf: common_prefix takes a string arrayethomson/strarray
`git_strarray` is a public-facing type. Change
`git_buf_text_common_prefix` to not use it, and just take an array of
strings instead.
Diffstat (limited to 'src/pathspec.c')
-rw-r--r-- | src/pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 8f1bdf0fa..c6ad16571 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -24,7 +24,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_common_prefix(&prefix, pathspec->strings, pathspec->count) < 0) return NULL; /* diff prefix will only be leading non-wildcards */ |