author | Jeff King <peff@peff.net> | |
Sun, 24 Feb 2008 22:17:37 +0000 (17:17 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 25 Feb 2008 02:31:50 +0000 (18:31 -0800) | ||
commit | 2156435ff22437909cda825f1901dceb198fef19 | |
tree | 1fcb77cd78dfedd827e3983e7971b251a4309e24 | tree | snapshot |
parent | 94351118c0a820002b093598e7fac5bdf3c0291f | commit | diff |
help: respect aliases
If we have an alias "foo" defined, then the help text for
"foo" (via "git help foo" or "git foo --help") now shows the
definition of the alias.
Before showing an alias definition, we make sure that there
is no git command which would override the alias (so that
even though you may have a "log" alias, even though it will
not work, we don't want to it supersede "git help log").
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If we have an alias "foo" defined, then the help text for
"foo" (via "git help foo" or "git foo --help") now shows the
definition of the alias.
Before showing an alias definition, we make sure that there
is no git command which would override the alias (so that
even though you may have a "log" alias, even though it will
not work, we don't want to it supersede "git help log").
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | diff | blob | history |