login
Header Space

 
 

Re: Tiny bug report, interaction between alias and help

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff King <peff@...>
Cc: François Pinard <pinard@...>, git mailing list <git@...>
Date: Saturday, January 19, 2008 - 6:55 pm

Hi,

On Sat, 19 Jan 2008, Jeff King wrote:


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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Tiny bug report, interaction between alias and help, François, (Sat Jan 19, 10:27 am)
Re: Tiny bug report, interaction between alias and help, Johannes Schindelin, (Sat Jan 19, 6:55 pm)
Re: Tiny bug report, interaction between alias and help, Johannes Schindelin, (Sat Jan 19, 7:23 pm)
Re: Tiny bug report, interaction between alias and help, Pascal Obry, (Sat Jan 19, 11:23 am)
speck-geostationary