]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/completion/git-completion.bash
completion: reflog subcommands and options
[thirdparty/git.git] / contrib / completion / git-completion.bash
index f9fbf1f703749d0e71cd7fa57e4b1da0b44c35c4..c5c9e9de2db8dbeee116029f8c3e800c376cfe8f 100644 (file)
@@ -2445,8 +2445,12 @@ _git_rebase ()
 
 _git_reflog ()
 {
-       local subcommands="show delete expire"
-       local subcommand="$(__git_find_subcommand "$subcommands" "show")"
+       local subcommands subcommand
+
+       __git_resolve_builtins "reflog"
+
+       subcommands="$___git_resolved_builtins"
+       subcommand="$(__git_find_subcommand "$subcommands" "show")"
 
        case "$subcommand,$cur" in
        show,--*)
@@ -2455,6 +2459,10 @@ _git_reflog ()
                        "
                return
                ;;
+       $subcommand,--*)
+               __gitcomp_builtin "reflog_$subcommand"
+               return
+               ;;
        esac
 
        __git_complete_refs