From ddd6af43ef6fc4ca6f6906e64cce443f691d5341 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 16 Aug 2008 00:48:48 +0000 Subject: 25457: improvements for git diff and git log. --- Completion/Unix/Command/_git | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Completion/Unix/Command/_git') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index ac08dd3d2..3dc973ac6 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -1597,9 +1597,10 @@ _git-diff () { _arguments -S \ $diff_args \ '--cached[show diff between index and named commit]' \ - '::original revision:__git_commits' \ - '::new revision:__git_commits' \ - '*::index file:__git_modified_files' && ret=0 + '::commit range:__git_commit_ranges' \ + '::original revision:__git_objects' \ + '::new revision:__git_objects' \ + '*::index file:__git_files' && ret=0 } (( $+functions[_git-fetch] )) || @@ -1727,9 +1728,9 @@ _git-log () { case $state in (files) - _alternative \ - 'files:index file:__git_cached_files' \ - 'branches:branch:__git_branch_names' && ret=0 + _arguments -S \ + '::index file:__git_cached_files' \ + '*::branch:__git_commit_ranges' && ret=0 ;; esac } -- cgit 1.4.1