completion: complete refs after 'git restore -s'
Currently only the long version (--source=) supports completion. Add completion support to the short (-s) option too. Signed-off-by: Ákos Uzonyi <uzonyi.akos@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
c09d1280f7
commit
0bc18daa2f
|
@ -2841,6 +2841,13 @@ _git_reset ()
|
||||||
|
|
||||||
_git_restore ()
|
_git_restore ()
|
||||||
{
|
{
|
||||||
|
case "$prev" in
|
||||||
|
-s)
|
||||||
|
__git_complete_refs
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--conflict=*)
|
--conflict=*)
|
||||||
__gitcomp "diff3 merge" "" "${cur##--conflict=}"
|
__gitcomp "diff3 merge" "" "${cur##--conflict=}"
|
||||||
|
|
Loading…
Reference in New Issue