Code

bash completion: Use 'git add' completions for 'git stage'
authorLee Marlow <lee.marlow@gmail.com>
Wed, 10 Dec 2008 19:39:18 +0000 (12:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Jan 2009 01:37:58 +0000 (17:37 -0800)
Signed-off-by: Lee Marlow <lee.marlow@gmail.com>
Trivially-Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index e986e783e24da202e9b5e2a55a82b0495529cbf3..7b074d79854813ffa38f781218bd878a79cbb505 100755 (executable)
@@ -1738,6 +1738,7 @@ _git ()
        show)        _git_show ;;
        show-branch) _git_show_branch ;;
        stash)       _git_stash ;;
+       stage)       _git_add ;;
        submodule)   _git_submodule ;;
        svn)         _git_svn ;;
        tag)         _git_tag ;;