Skip to content

Commit 541c2a3

Browse files
albert-astals-cid-kdabgitster
authored andcommitted
completion: add --autostash and --no-autostash to pull
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 14c63a9 commit 541c2a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,7 @@ _git_pull ()
19221922
--*)
19231923
__gitcomp "
19241924
--rebase --no-rebase
1925+
--autostash --no-autostash
19251926
$__git_merge_options
19261927
$__git_fetch_options
19271928
"

0 commit comments

Comments
 (0)