Re: [PATCH] Allow an alias to start with "-p"
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> Patch is below (wow, that +++ is kind of ugly!).
>
> Same here.
Show 14 quoted lines
> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
>
>> @@ -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.