>From ff8b9df282efbec19319719f67b99cf7d259087a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 18 Aug 2015 04:26:48 +0000 Subject: [PATCH 3/3] _git-log: Complete multiple revspecs e.g., git log origin/master origin/foo origin/bar --- Completion/Unix/Command/_git | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 90969bd..6922393 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. -- 2.1.4