completion: use __gitcomp_builtin in _git_revert
[gitweb.git] / contrib / completion / git-completion.bash
index 9aca05d01e4e73aa993bbee22ab17aa460ec1d05..e63f2f2741d84cc50dff7dd032b7d60c9e73ad17 100644 (file)
@@ -2692,19 +2692,19 @@ _git_reset ()
        __git_complete_refs
 }
 
+__git_revert_inprogress_options="--continue --quit --abort"
+
 _git_revert ()
 {
        __git_find_repo_path
        if [ -f "$__git_repo_path"/REVERT_HEAD ]; then
-               __gitcomp "--continue --quit --abort"
+               __gitcomp "$__git_revert_inprogress_options"
                return
        fi
        case "$cur" in
        --*)
-               __gitcomp "
-                       --edit --mainline --no-edit --no-commit --signoff
-                       --strategy= --strategy-option=
-                       "
+               __gitcomp_builtin revert "--no-edit" \
+                       "$__git_revert_inprogress_options"
                return
                ;;
        esac