On 15 aug 2008, at 20:50, Junio C Hamano wrote:How about something simple like this? diff --git a/builtin-help.c b/builtin-help.c index 391f749..a49b5c2 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -446,6 +446,11 @@ int cmd_help(int argc, const char **argv, const char *prefix) return 0; } + if (!strcmp("man-path", argv[0])) { + printf("%s\n", GIT_MAN_PATH); + return 0; + } + switch (help_format) { case HELP_FORMAT_MAN: show_man_page(argv[0]); diff --git a/contrib/completion/git-completion.bash b/contrib/ completion/git-completion.bash index 3396e35..f781661 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -885,7 +885,8 @@ _git_help () return ;; esac - __gitcomp "$(__git_all_commands)" + __gitcomp "$(ls $(./git help man-path)/man?/* | + sed -n 's/^.*\/git-\{0,1\}\(.*\)\.[0-9]$/\1/p')" } -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Mariusz Kozlowski | [PATCH 01] kmalloc + memset conversion co kzalloc |
| Rafael J. Wysocki | [Bug #10629] 2.6.26-rc1-$sha1: RIP __d_lookup+0x8c/0x160 |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
