Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-10 11:46:42 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-10 13:52:47 +0300
commitcfb22a02ab52a5e8b74139efad8e0a10bd95f149 (patch)
tree257b1a0491c8886a1ea2210db9b350d8bf8028ee /generate-cmdlist.sh
parentf318d7391592f153d1682d01ebaa2d35e3b6ede7 (diff)
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>
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-xgenerate-cmdlist.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 870d3b626a..9eb22c4ef1 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -6,7 +6,7 @@ die () {
}
command_list () {
- sed '1,/^### command list/d;/^#/d' "$1"
+ grep -v '^#' "$1"
}
get_categories () {
@@ -65,7 +65,7 @@ echo "/* Automatically generated by generate-cmdlist.sh */
struct cmdname_help {
const char *name;
const char *help;
- uint32_t group;
+ uint32_t category;
};
"
if test -z "$2"