summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-08-18 04:26:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-08-19 23:28:12 +0000
commita4c41fff1261c4c0251fe969e7684c582160f93a (patch)
tree410753e0c29a863db6cce34eff4f883ab5d13086 /Completion/Unix/Command
parentd70e7149df96e94e747ea3ed9ae6787f5a04d8b5 (diff)
downloadzsh-a4c41fff1261c4c0251fe969e7684c582160f93a.tar.gz
zsh-a4c41fff1261c4c0251fe969e7684c582160f93a.tar.xz
zsh-a4c41fff1261c4c0251fe969e7684c582160f93a.zip
36236: _git-log: Complete multiple revspecs
e.g., git log origin/master origin/foo origin/bar
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git5
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index df9375ff4..fc9d7ce9f 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1101,6 +1101,11 @@ _git-log () {
       fi
     ;;
     (commit-ranges-or-files)
+      # Multiple revspecs are permitted.
+      if [[ -z ${opt_args[(I)--]} ]]; then
+        __git_commit_ranges "$@" && ret=0
+      fi
+
       # TODO: Write a wrapper function that checks whether we have a
       # committish range or comittish and calls __git_tree_files
       # appropriately.