]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/completion/git-completion.bash
completion: teach ls-remote to complete options
[thirdparty/git.git] / contrib / completion / git-completion.bash
index bfa3afb4c130d05744b94e9993422b2941b06d07..2ed0ef629788a9ad559dbbb0b32537365aa63d44 100644 (file)
@@ -1449,6 +1449,12 @@ _git_ls_files ()
 
 _git_ls_remote ()
 {
+       case "$cur" in
+       --*)
+               __gitcomp "--heads --tags --refs --get-url --symref"
+               return
+               ;;
+       esac
        __gitcomp_nl "$(__git_remotes)"
 }