On Sat, Apr 21, 2018 at 12:54 PM, Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> wrote: > The help command currently hard codes the list of guides and their > summary in C. Let's move this list to command-list.txt. This lets us > extract summary lines from Documentation/git*.txt. This also > potentially lets us lists guides in git.txt, but I'll leave that for > now. > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> > --- > diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh > @@ -58,7 +58,11 @@ command_list "$1" | > do > - prefix=git- > + if [ "$category" = guide ]; then Style: if test "$category" = guide then ... > + prefix=git > + else > + prefix=git- > + fi