Merge branch 'rr/complete-difftool-fixup'
authorJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2013 15:46:23 +0000 (08:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2013 15:46:23 +0000 (08:46 -0700)
"git difftool" can take both revs to be compared and pathspecs.
"git show" takes revs, revs:path and pathspecs.

* rr/complete-difftool-fixup:
completion: show can take both revlist and paths
completion: difftool takes both revs and files

contrib/completion/git-completion.bash
index 56c52c6654dfe0d320515ad151c6afc292ec70f9..fd9a1d5f6c1bc1caa073c001181ed4bb366d4ba5 100644 (file)
@@ -1211,7 +1211,7 @@ _git_difftool ()
                return
                ;;
        esac
-       __git_complete_file
+       __git_complete_revlist_file
 }
 
 __git_fetch_options="
@@ -2277,7 +2277,7 @@ _git_show ()
                return
                ;;
        esac
-       __git_complete_file
+       __git_complete_revlist_file
 }
 
 _git_show_branch ()