From a4c41fff1261c4c0251fe969e7684c582160f93a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 18 Aug 2015 04:26:48 +0000 Subject: 36236: _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(+) (limited to 'Completion/Unix/Command/_git') 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. -- cgit 1.4.1