From 019c0fed23ca1bfbe0931fc9eb48a344a34acb28 Mon Sep 17 00:00:00 2001 From: Vladimir Varankin Date: Sat, 29 Nov 2014 00:15:49 +0300 Subject: [PATCH] Add completion for git-clean --- share/completions/git.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index ae2a6a570..62838dafe 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -421,5 +421,16 @@ complete -f -c git -n '__fish_git_needs_command' -a whatchanged -d 'Show logs wi ## Aliases (custom user-defined commands) complete -c git -n '__fish_git_needs_command' -a '(__fish_git_aliases)' -d 'Alias (user-defined command)' +### git clean +complete -f -c git -n '__fish_git_needs_command' -a clean -d 'Remove untracked files from the working tree' +complete -f -c git -n '__fish_git_using_command clean' -s f -l force -d 'Force run' +complete -f -c git -n '__fish_git_using_command clean' -s i -l interactive -d 'Show what would be done and clean files interactively' +complete -f -c git -n '__fish_git_using_command clean' -s n -l dry-run -d 'Don\'t actually remove anything, just show what would be done' +complete -f -c git -n '__fish_git_using_command clean' -s q -l quite -d 'Be quiet, only report errors' +complete -f -c git -n '__fish_git_using_command clean' -s d -d 'Remove untracked directories in addition to untracked files' +complete -f -c git -n '__fish_git_using_command clean' -s x -d 'Remove ignored files, as well' +complete -f -c git -n '__fish_git_using_command clean' -s X -d 'Remove only ignored files' +# TODO -e option + ## Custom commands (git-* commands installed in the PATH) complete -c git -n '__fish_git_needs_command' -a '(__fish_git_custom_commands)' -d 'Custom command'