summaryrefslogtreecommitdiff
path: root/t/helper/test-sha1-array.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-24 07:44:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-27 15:45:47 (GMT)
commitaa218dffcc00a8c5f7cccba79c3441addecabb50 (patch)
tree1dc163a21f63030963402f5d50a578d1e5e6890d /t/helper/test-sha1-array.c
parentff5fb8b0343270caeb8f4b650c515d7755f57903 (diff)
downloadgit-aa218dffcc00a8c5f7cccba79c3441addecabb50.zip
git-aa218dffcc00a8c5f7cccba79c3441addecabb50.tar.gz
git-aa218dffcc00a8c5f7cccba79c3441addecabb50.tar.bz2
t/helper: merge test-sha1-array 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-sha1-array.c')
-rw-r--r--t/helper/test-sha1-array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-sha1-array.c b/t/helper/test-sha1-array.c
index edfd52d..ad5e69f 100644
--- a/t/helper/test-sha1-array.c
+++ b/t/helper/test-sha1-array.c
@@ -1,3 +1,4 @@
+#include "test-tool.h"
#include "cache.h"
#include "sha1-array.h"
@@ -7,7 +8,7 @@ static int print_oid(const struct object_id *oid, void *data)
return 0;
}
-int cmd_main(int argc, const char **argv)
+int cmd__sha1_array(int argc, const char **argv)
{
struct oid_array array = OID_ARRAY_INIT;
struct strbuf line = STRBUF_INIT;