help: use command-list.h for common command list
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 10 May 2018 08:46:42 +0000 (10:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 May 2018 10:52:47 +0000 (19:52 +0900)
commitcfb22a02ab52a5e8b74139efad8e0a10bd95f149
tree257b1a0491c8886a1ea2210db9b350d8bf8028ee
parentf318d7391592f153d1682d01ebaa2d35e3b6ede7
help: use command-list.h for common command list

The previous commit added code generation for all_cmd_desc[] which
includes almost everything we need to generate common command list.
Convert help code to use that array instead and drop common_cmds[] array.

The description of each common command group is removed from
command-list.txt. This keeps this file format simpler. common-cmds.h
will not be generated correctly after this change due to the
command-list.txt format change. But it does not matter and
common-cmds.h will be removed.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
command-list.txt
generate-cmdlist.sh
help.c
t/t0012-help.sh