diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2020-11-12 16:34:52 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-17 10:57:46 -0800 |
commit | e4c75edb52acab8c90520ceedab4326b972cc0af (patch) | |
tree | 722aa52162666cb8eca584c22f944ee9fc199f13 /t/t4051-diff-function-context.sh | |
parent | completion: bash: check for alias loop (diff) | |
download | tgif-e4c75edb52acab8c90520ceedab4326b972cc0af.tar.xz |
completion: bash: improve alias loop detection
It is possible for the name of an alias to end with the name of another
alias, in which case the code will incorrectly detect a loop.
We can fix that by adding an extra space between words.
Suggested-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4051-diff-function-context.sh')
0 files changed, 0 insertions, 0 deletions