summaryrefslogtreecommitdiff
path: root/t/helper/test-config.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-24 07:44:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-27 15:45:47 (GMT)
commit0e2678af4c90f0cb28d04cb87f2a71ea2ec47f5d (patch)
tree7e949ddcd220e5e67a3ce72254b7fbba0970ab87 /t/helper/test-config.c
parent64eb82fea8fbfe96e02997921283f6ffa368f5fe (diff)
downloadgit-0e2678af4c90f0cb28d04cb87f2a71ea2ec47f5d.zip
git-0e2678af4c90f0cb28d04cb87f2a71ea2ec47f5d.tar.gz
git-0e2678af4c90f0cb28d04cb87f2a71ea2ec47f5d.tar.bz2
t/helper: merge test-config 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-config.c')
-rw-r--r--t/helper/test-config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-config.c b/t/helper/test-config.c
index 1a7b8bd..214003d 100644
--- a/t/helper/test-config.c
+++ b/t/helper/test-config.c
@@ -1,3 +1,4 @@
+#include "test-tool.h"
#include "cache.h"
#include "config.h"
#include "string-list.h"
@@ -32,7 +33,7 @@
* Examples:
*
* To print the value with highest priority for key "foo.bAr Baz.rock":
- * test-config get_value "foo.bAr Baz.rock"
+ * test-tool config get_value "foo.bAr Baz.rock"
*
*/
@@ -77,7 +78,7 @@ static int early_config_cb(const char *var, const char *value, void *vdata)
return 0;
}
-int cmd_main(int argc, const char **argv)
+int cmd__config(int argc, const char **argv)
{
int i, val;
const char *v;