aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Vladimir Varankin <nek.narqo+git@gmail.com>2014-11-29 00:15:49 +0300
committerGravatar Vladimir Varankin <nek.narqo+git@gmail.com>2014-11-29 00:15:49 +0300
commit019c0fed23ca1bfbe0931fc9eb48a344a34acb28 (patch)
tree23d6492533e657fa41003ebc9341d1f6bd9bfcb6 /share
parentbb01e5f81a02d45da654c597ca4a983fc152e4f8 (diff)
Add completion for git-clean
Diffstat (limited to 'share')
-rw-r--r--share/completions/git.fish11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish
index ae2a6a57..62838daf 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'