Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _git: where applicable show autosquash on rebase



Currently --autosquash argument is shown only if long --interactive argument is
given. Enable showing --autosquash argument in case short -i argument is used.

Signed-off-by: Luka Perkov <luka@xxxxxxxxxxx>
---
 Completion/Unix/Command/_git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index db59a9b..1448698 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1182,7 +1182,7 @@ _git-push () {
 _git-rebase () {
   local -a autosquash_opts
 
-  if (( words[(I)--interactive] )); then
+  if (( words[(I)-i|--interactive] )); then
     autosquash_opts=(
       '(             --no-autosquash)--autosquash[check for auto-squash boundaries]'
       '(--autosquash                )--no-autosquash[do not check for auto-squash boundaries]')
-- 
1.8.4



Messages sorted by: Reverse Date, Date, Thread, Author