completion: teach replace to complete options
[gitweb.git] / contrib / completion / git-completion.bash
index 2ed0ef629788a9ad559dbbb0b32537365aa63d44..8c6736e4cf6b4df81b4babe7210eab63a4a261d5 100644 (file)
@@ -2408,6 +2408,12 @@ _git_remote ()
 
 _git_replace ()
 {
+       case "$cur" in
+       --*)
+               __gitcomp "--edit --graft --format= --list --delete"
+               return
+               ;;
+       esac
        __gitcomp_nl "$(__git_refs)"
 }