1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

36236: _git-log: Complete multiple revspecs

e.g., git log origin/master origin/foo origin/bar
This commit is contained in:
Daniel Shahaf 2015-08-18 04:26:48 +00:00
parent d70e7149df
commit a4c41fff12
2 changed files with 8 additions and 0 deletions

View file

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