summaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorLibravatar Adeodato Simó <dato@net.com.org.es>2009-01-04 18:16:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-05 12:54:07 -0800
commita907e1b6ec3038306df68dc1275edad7457bba4b (patch)
treecab1613ca81299ac843b5f8c4fd9cf3de175183f /builtin-grep.c
parentbash: add '--merge' to 'git reset' (diff)
downloadtgif-a907e1b6ec3038306df68dc1275edad7457bba4b.tar.xz
git.c: make autocorrected aliases work
help_unknown_cmd() is able to autocorrect a command to an alias, and not only to internal or external commands. However, main() was not passing the autocorrected command through handle_alias(), hence it failed if it was an alias. This commit makes the autocorrected command go through handle_alias(), once handle_internal_command() and execv_dashed_external() have been tried. Since this is done twice in main() now, moved that logic to a new run_argv() function. Also, print the same "Expansion of alias 'x' failed" message when the alias was autocorrected, rather than a generic "Failed to run command 'x'". Signed-off-by: Adeodato Simó <dato@net.com.org.es> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-grep.c')
0 files changed, 0 insertions, 0 deletions