]> git.ipfire.org Git - thirdparty/git.git/commit - command-list.txt
generate-cmds.sh: export all commands to command-list.h
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 10 May 2018 08:46:41 +0000 (10:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 May 2018 10:52:47 +0000 (19:52 +0900)
commitf318d7391592f153d1682d01ebaa2d35e3b6ede7
tree785605146328278f1b452c0c99ae0144ccfbbd51
parent75ba897e3059da44ad0cf27d1e4d12dc03e54001
generate-cmds.sh: export all commands to command-list.h

The current generate-cmds.sh generates just enough to print "git help"
output. That is, it only extracts help text for common commands.

The script is now updated to extract help text for all commands and
keep command classification a new file, command-list.h. This will be
useful later:

- "git help -a" could print a short summary of all commands instead of
  just the common ones.

- "git" could produce a list of commands of one or more category. One
  of its use is to reduce another command classification embedded in
  git-completion.bash.

The new file can be generated but is not used anywhere yet. The plan
is we migrate away from common-cmds.h. Then we can kill off
common-cmds.h build rules and generation code (and also delete
duplicate content in command-list.h which we keep for now to not mess
generate-cmds.sh up too much).

PS. The new fixed column requirement on command-list.txt is
technically not needed. But it helps simplify the code a bit at this
stage. We could lift this restriction later if we want to.

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