Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit_tree: take a pointer/len pair rather than a const strbuf
[gitweb.git]
/
test-string-list.c
diff --git
a/test-string-list.c
b/test-string-list.c
index 00ce6c9a129674c1922e0c388366592c5ae7c8c7..14bdf9d2153a98d0b2a5d03395c1adcc166f8a07 100644
(file)
--- a/
test-string-list.c
+++ b/
test-string-list.c
@@
-38,7
+38,7
@@
static void write_list_compact(const struct string_list *list)
static int prefix_cb(struct string_list_item *item, void *cb_data)
{
const char *prefix = (const char *)cb_data;
- return
!prefixcmp
(item->string, prefix);
+ return
starts_with
(item->string, prefix);
}
int main(int argc, char **argv)