Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: where applicable show autosquash on rebase
- X-seq: zsh-workers 31702
- From: Luka Perkov <luka@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: where applicable show autosquash on rebase
- Date: Fri, 6 Sep 2013 02:01:14 +0200
- Cc: Luka Perkov <luka@xxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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