]> git.ipfire.org Git - thirdparty/git.git/commit - git.c
help: make option --help open man pages only for Git commands
authorRalf Thielow <ralf.thielow@gmail.com>
Fri, 26 Aug 2016 17:58:36 +0000 (19:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2016 23:09:41 +0000 (16:09 -0700)
commit2c6b6d9f7d8a26b6ae6493584cc3d2a3cbae7358
tree663be86da2e4ab3e2c57a13039c2a541540f7462
parentaf74128f4a447678daae4d59069fba8a0c797210
help: make option --help open man pages only for Git commands

If option --help is passed to a Git command, we try to open
the man page of that command.  However, we do it for both commands
and concepts.  Make sure it is an actual command.

This makes "git <concept> --help" not working anymore, while
"git help <concept>" still works.

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c
t/t0012-help.sh