Urgh... We really have something like that in git? Looks like a prime
candidate for refactoring a la
void (*show_cmd)(const char *git_cmd) = show_man_page;
const char *cmd = argc > 2 ? argv[2] : NULL;
if (cmd && show_alias_help(cmd))
return 0;
if (!strcmp(help_cmd, "--web") || !strcmp(help_cmd, "-w"))
show_cmd = show_html_page;
else ...
...
show_cmd(cmd);
Ciao,
Dscho
-
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