completion: add 'symbolic-ref'
commitcb85fdf4a4445fd201133dfc8d1e43c7e2e68bf5
authorRoland Hieber <rhi@pengutronix.de>
Thu, 25 Apr 2024 10:18:42 +0000 (25 12:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2024 16:23:26 +0000 (25 09:23 -0700)
tree2958e0a993f66591aa8d2b61aac3c33cf0029cf0
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
completion: add 'symbolic-ref'

Even 'symbolic-ref' is only completed when
GIT_COMPLETION_SHOW_ALL_COMMANDS=1 is set, it currently defaults to
completing file names, which is not very helpful. Add a simple
completion function which completes options and refs.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh