completion: add --autostash and --no-autostash to pull
authorAlbert Astals Cid <albert.astals.cid@kdab.com>
Tue, 21 Nov 2017 14:39:28 +0000 (15:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Nov 2017 07:31:43 +0000 (16:31 +0900)
Ideally we should only autocomplete if pull has --rebase since
they only work with it but could not figure out how to do that
and the error message of doing git pull --autostash points out
that you need --rebase so i guess it's good enough

Signed-off-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index f07f16b28fe80de32ebc0431b5d1d8f5a64e19d8..be9cf0acc0315b31b9d8e9cba662e5c9368d75f7 100644 (file)
@@ -1922,6 +1922,7 @@ _git_pull ()
        --*)
                __gitcomp "
                        --rebase --no-rebase
+                       --autostash --no-autostash
                        $__git_merge_options
                        $__git_fetch_options
                "