diff options
author | Tim Schumacher <timschumi@gmx.de> | 2018-09-16 09:50:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-17 08:27:52 -0700 |
commit | c6d75bc17a045af8cadd2dce982f5737a5ca38bb (patch) | |
tree | c69bc879eb5a8f627804a3962b16eb2b734855c1 /builtin/column.c | |
parent | Git 2.19 (diff) | |
download | tgif-c6d75bc17a045af8cadd2dce982f5737a5ca38bb.tar.xz |
alias: add support for aliases of an alias
Aliases can only contain non-alias git commands and their arguments,
not other user-defined aliases. Resolving further (nested) aliases
is prevented by breaking the loop after the first alias was
processed. Git then fails with a command-not-found error.
Allow resolving nested aliases by not breaking the loop in
run_argv() after the first alias was processed. Instead, continue
the loop until `handle_alias()` fails, which means that there are no
further aliases that can be processed. Prevent looping aliases by
storing substituted commands in `cmd_list` and checking if a command
has been substituted previously.
While we're at it, fix a styling issue just below the added code.
Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/column.c')
0 files changed, 0 insertions, 0 deletions