summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-09-26 20:20:03 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-09-26 20:20:57 -0400
commit7e7cfe8acdc8e506a5e670e7cfb74e43c031ccaf (patch)
treefedcb7be8c2b7c200e2fdbe5f9219ca8f567d649 /src/buffer.h
parent136901086ecfdd2b5cc106782310355a9c0b1a9a (diff)
downloadlibgit2-7e7cfe8acdc8e506a5e670e7cfb74e43c031ccaf.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/buffer.h')
-rw-r--r--src/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h
index a356bebea..75930e209 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -324,7 +324,7 @@ extern int git_buf_lf_to_crlf(git_buf *tgt, const git_buf *src);
*
* Buffer will be set to empty if there is no common prefix
*/
-extern int git_buf_common_prefix(git_buf *buf, const git_strarray *strs);
+extern int git_buf_common_prefix(git_buf *buf, char *const *const strings, size_t count);
/**
* Check if a buffer begins with a UTF BOM