completion: use __gitcomp_builtin in _git_grep
[gitweb.git] / contrib / completion / git-completion.bash
index 79e9f69d52e89c534d27df517f0007760bc651d9..60d27253ee895f2704182889004ad2772fa65776 100644 (file)
@@ -1565,21 +1565,7 @@ _git_grep ()
 
        case "$cur" in
        --*)
-               __gitcomp "
-                       --cached
-                       --text --ignore-case --word-regexp --invert-match
-                       --full-name --line-number
-                       --extended-regexp --basic-regexp --fixed-strings
-                       --perl-regexp
-                       --threads
-                       --files-with-matches --name-only
-                       --files-without-match
-                       --max-depth
-                       --count
-                       --and --or --not --all-match
-                       --break --heading --show-function --function-context
-                       --untracked --no-index
-                       "
+               __gitcomp_builtin grep
                return
                ;;
        esac