From 41b8db063c032c673e366d81bccf37022b9c1d4f Mon Sep 17 00:00:00 2001 From: Grissiom Date: Fri, 17 Sep 2010 16:38:26 +0800 Subject: [PATCH] add git submodule completion Merged from http://github.com/weavejester/fish-git --- share/completions/git.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index f4da66249..6bc288c99 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -222,5 +222,12 @@ complete -f -c git -n '__fish_git_needs_command' -a config -d 'Set and read git complete -f -c git -n '__fish_git_needs_command' -a format-patch -d 'Generate patch series to send upstream' complete -f -c git -n '__fish_git_using_command format-patch' -a '(__fish_git_branches)' -d 'Branch' -### aliases (custom user-definer commands) +## git submodule +complete -f -c git -n '__fish_git_needs_command' -a submodule -d 'Initialize, update or inspect submodules' +complete -f -c git -n '__fish_git_using_command submodule' -a 'add status init update summary foreach sync' -d 'Make a GPG-signed tag' + +## git whatchanged +complete -f -c git -n '__fish_git_needs_command' -a whatchanged -d 'Show logs with difference each commit introduces' + +## Aliases (custom user-defined commands) complete -c git -n '__fish_git_needs_command' -a '(git config --get-regexp alias | sed -e "s/^alias\.\(\S\+\).*/\1/")' -d 'Alias (user-defined command)'