]> git.ipfire.org Git - thirdparty/git.git/commit
completion: bash: fix prefix detection in branch.*
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 16 Aug 2021 09:10:22 +0000 (04:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2021 18:17:25 +0000 (11:17 -0700)
commitbf8ae49a8f7d8b6dd87bbea34e6566e8581ab231
tree5fb725e92a5318de7077fff14289463cd3b99c0f
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb
completion: bash: fix prefix detection in branch.*

Otherwise we are completely ignoring the --cur argument.

The issue can be tested with:

  git clone --config=branch.<tab>

Reviewed-by: SZEDER Gábor <szeder.dev@gmail.com>
Tested-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash