Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Allow an alias to start with "-p"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:34

Johannes Schindelin [off-list ref] writes:
quoted
Patch is below (wow, that +++ is kind of ugly!).
Same here.
Same here ;-).
Acked-by: Johannes Schindelin <redacted>
quoted
@@ -289,8 +289,8 @@ int main(int argc, const char **argv, ch
 	if (!strncmp(cmd, "git-", 4)) {
 		cmd += 4;
 		argv[0] = cmd;
-		handle_alias(&argc, &argv);
 		handle_internal_command(argc, argv, envp);
+		handle_alias(&argc, &argv);
 		die("cannot handle %s internally", cmd);
 	}
Alternatively, you can just delete it. IIRC we decided that aliases with 
"git-" commands do not make sense.
I think that is reasonable and simpler.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help