]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0012-help.sh
help: introduce option --exclude-guides
authorRalf Thielow <ralf.thielow@gmail.com>
Fri, 26 Aug 2016 17:58:35 +0000 (19:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2016 23:09:41 +0000 (16:09 -0700)
commitaf74128f4a447678daae4d59069fba8a0c797210
treea8f206722cb28b37b19b30bed506cb0acbf686ea
parent3b1c6a9b6ef3a1b26f24439436a09482a3618ff3
help: introduce option --exclude-guides

Introduce option --exclude-guides to the help command.  With this option
being passed, "git help" will open man pages only for actual commands.

Since we know it is a command, we can use function help_unknown_command
to give the user advice on typos.

Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/help.c
t/t0012-help.sh [new file with mode: 0755]