zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _git: where applicable show autosquash on rebase
@ 2013-09-06  0:01 Luka Perkov
  0 siblings, 0 replies; only message in thread
From: Luka Perkov @ 2013-09-06  0:01 UTC (permalink / raw)
  To: zsh-workers; +Cc: Luka Perkov

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@openwrt.org>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-06  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-06  0:01 [PATCH] _git: where applicable show autosquash on rebase Luka Perkov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).