completion: bash: add __git_have_func helper
commit7f94b78ddabdb49cde32b088ca66b422e7cda628
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 30 Dec 2020 23:29:47 +0000 (30 17:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 23:25:56 +0000 (4 15:25 -0800)
tree575e516ab25d3a43b48e35b2cad3d5e0afcfe4aa
parent71ca53e8125e36efbda17293c50027d31681a41f
completion: bash: add __git_have_func helper

This makes the code more readable, and also will help when new code
wants to do similar checks.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash