Re: Tiny bug report, interaction between alias and help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 20, 2008 at 04:59:13PM +0700, Nguyen Thai Ngoc Duy wrote:

> I've been hit by this and came up with a similar approach as well. But
> I dropped it because it made aliases higher precedence than git-foo
> while git aliases cannot override git-foo (builtin or external ones).
> Is there any other way to make "git-help" respect git command
> executing order?

Yes, and that is an issue in my refactored patch as well. The tricky
thing is that usually we say "try git-foo as a real git command, and
then fall back to aliases" but we can't here, because "try git-foo"
involves exec'ing something else.

It should be possible to do a lookup on "git-foo" and find out if it is
a real git command, but I don't know how involved that will be. I'll
look at it before I resend post-1.5.4.

And of course the other option is "so what?" People with alias.commit
set will get the alias text rather than the man page. But they will
quickly figure out that alias.commit doesn't actually _work_, and
presumably remove it.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux