completion: bash: improve alias loop detection
authorFelipe Contreras <redacted>
Thu, 12 Nov 2020 22:34:52 +0000 (16:34 -0600)
committerJunio C Hamano <redacted>
Tue, 17 Nov 2020 18:57:46 +0000 (10:57 -0800)
commite4c75edb52acab8c90520ceedab4326b972cc0af
tree722aa52162666cb8eca584c22f944ee9fc199f13
parentc2822a842dc993722a9d6f8226189312b95d8801
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 <redacted>
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
git clone https://git.99rst.org/PROJECT