about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-13 21:00:28 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-13 21:01:45 +0000
commit122bb9a1259ec13110fd86aaea286d4a6e1726a0 (patch)
treee3cad2cf27cec9be5b08f653e994a278582afa48
parent7793ebcb71919ed396e1291e975e7fc6483b2512 (diff)
downloadzsh-122bb9a1259ec13110fd86aaea286d4a6e1726a0.tar.gz
zsh-122bb9a1259ec13110fd86aaea286d4a6e1726a0.tar.xz
zsh-122bb9a1259ec13110fd86aaea286d4a6e1726a0.zip
34886: completion: git: Complete rebase --exec argument
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8fb76e88a..fc7b92d99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-04-13  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 34886: Completion/Unix/Command/_git: completion: git: Complete
+	rebase --exec argument
+
 	* 34885: Completion/Unix/Command/_git: completion: git: Sort
 	"commit object" completions most recent first
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 6a2da17a7..979e3e76f 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1335,7 +1335,7 @@ _git-rebase () {
     '(-i --interactive --ignore-whitespace --whitespace --committer-date-is-author-date)'{-i,--interactive}'[make a list of commits to be rebased and open in $EDITOR]' \
     '--edit-todo[edit interactive instruction sheet in an editor]' \
     '(-p --preserve-merges --interactive)'{-p,--preserve-merges}'[try to recreate merges instead of ignoring them]' \
-    {-x,--exec=}'[with -i\: append "exec <cmd>" after each line]:command' \
+    {-x,--exec=}'[with -i\: append "exec <cmd>" after each line]:command:_command_names -e' \
     '(1)--root[rebase all reachable commits]' \
     $autosquash_opts \
     '(--autostash --no-autostash)--autostash[stash uncommitted changes before rebasing and apply them afterwards]' \