summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Smith <tim.dolores@gmail.com>2018-06-13 12:48:59 -0600
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-06-18 09:23:27 +0200
commit25e9590e09db9067dc9c38b213893920a66fb2ae (patch)
tree70f237da9cdc4c5f85ae01a055d72e8b62c7a1b9
parent4dddf3aa6e446cef6e0ea720aa20bcf71d6107b1 (diff)
downloadzsh-25e9590e09db9067dc9c38b213893920a66fb2ae.tar.gz
zsh-25e9590e09db9067dc9c38b213893920a66fb2ae.tar.xz
zsh-25e9590e09db9067dc9c38b213893920a66fb2ae.zip
43006: complete modified files after `git stash --`
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 88b9aa6e4..ede97e7c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-06-18  Oliver Kiddle  <okiddle@yahoo.co.uk>
 
+	* 43006: Tim Smith: Completion/Unix/Command/_git: complete
+	modified files after `git stash --`
+
 	* users/23484: Completion/Unix/Command/_git: be consistent on
 	matcher specs for branches to fix issue with partial matching
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 254086473..b92a320df 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1694,6 +1694,9 @@ _git-stash () {
 	    '(-m --message)'{-m,--message}'[specify stash description]' \
             ':: :__git_modified_files' && ret=0
           ;;
+        (--)
+            __git_modified_files
+          ;;
         (list)
           local -a log_options revision_options
           __git_setup_log_options