include $PATH in generating list of commands for "help -a"
commit1eb056905a2956ca9fabd2edcce05c0a29ce64b1
authorScott R Parish <srp@srparish.net>
Mon, 29 Oct 2007 03:30:52 +0000 (28 20:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Oct 2007 03:51:37 +0000 (29 20:51 -0700)
tree9e3036de07b6e76d4d7a76947f7b3462ee7ef521
parent511707d42b3b3e57d9623493092590546ffeae80
include $PATH in generating list of commands for "help -a"

Git had previously been using the $PATH for scripts--a previous
patch moved exec'ed commands to also use the $PATH. For consistency
"help -a" should also list commands in the $PATH.

The main commands are still listed from the git_exec_path(), but
the $PATH is walked and other git commands (probably extensions) are
listed.

Signed-off-by: Scott R Parish <srp@srparish.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c