summaryrefslogtreecommitdiff
path: root/t/helper/test-string-list.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-24 08:45:00 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-27 08:45:47 -0700
commitc932a5ff2880a23f3f28823768a58b17b675d276 (patch)
treeb9848732cfee3b78b317eaf46473d27d44560b54 /t/helper/test-string-list.c
parentt/helper: merge test-strcmp-offset into test-tool (diff)
downloadtgif-c932a5ff2880a23f3f28823768a58b17b675d276.tar.xz
t/helper: merge test-string-list into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-string-list.c')
-rw-r--r--t/helper/test-string-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-string-list.c b/t/helper/test-string-list.c
index 829ec3d7d2..2123dda85b 100644
--- a/t/helper/test-string-list.c
+++ b/t/helper/test-string-list.c
@@ -1,3 +1,4 @@
+#include "test-tool.h"
#include "cache.h"
#include "string-list.h"
@@ -41,7 +42,7 @@ static int prefix_cb(struct string_list_item *item, void *cb_data)
return starts_with(item->string, prefix);
}
-int cmd_main(int argc, const char **argv)
+int cmd__string_list(int argc, const char **argv)
{
if (argc == 5 && !strcmp(argv[1], "split")) {
struct string_list list = STRING_LIST_INIT_DUP;