]> granicus.if.org Git - git/commit
alias: show the call history when an alias is looping
authorTim Schumacher <timschumi@gmx.de>
Sun, 16 Sep 2018 07:50:01 +0000 (09:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 15:50:04 +0000 (08:50 -0700)
commit82f71d9a5a9df718553bf257ad8610e2ef1e1179
treeb5379b1b4eee70b50baf89090865d673d03c70df
parentc6d75bc17a045af8cadd2dce982f5737a5ca38bb
alias: show the call history when an alias is looping

Just printing the command that the user entered is not particularly
helpful when trying to find the alias that causes the loop.

Print the history of substituted commands to help the user find the
offending alias. Mark the entrypoint of the loop with "<==" and the
last command (which looped back to the entrypoint) with "==>".

Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c