summaryrefslogtreecommitdiffstats
path: root/t/helper/test-regex.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-24 08:44:53 +0100
committerJunio C Hamano <gitster@pobox.com>2018-03-27 17:45:47 +0200
commit9038531f1bf71352aa9218e3ea45d5ff7721c4d5 (patch)
treea93b756c8d1485e5f0580963f2ad384cc140959a /t/helper/test-regex.c
parentt/helper: merge test-ref-store into test-tool (diff)
downloadgit-9038531f1bf71352aa9218e3ea45d5ff7721c4d5.tar.xz
git-9038531f1bf71352aa9218e3ea45d5ff7721c4d5.zip
t/helper: merge test-regex 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-regex.c')
-rw-r--r--t/helper/test-regex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/helper/test-regex.c b/t/helper/test-regex.c
index b5ea8a97c5..10284cc56f 100644
--- a/t/helper/test-regex.c
+++ b/t/helper/test-regex.c
@@ -1,3 +1,4 @@
+#include "test-tool.h"
#include "git-compat-util.h"
#include "gettext.h"
@@ -36,7 +37,7 @@ static int test_regex_bug(void)
return 0;
}
-int cmd_main(int argc, const char **argv)
+int cmd__regex(int argc, const char **argv)
{
const char *pat;
const char *str;
@@ -47,8 +48,8 @@ int cmd_main(int argc, const char **argv)
if (argc == 2 && !strcmp(argv[1], "--bug"))
return test_regex_bug();
else if (argc < 3)
- usage("test-regex --bug\n"
- "test-regex <pattern> <string> [<options>]");
+ usage("test-tool regex --bug\n"
+ "test-tool regex <pattern> <string> [<options>]");
argv++;
pat = *argv++;