Add flag completions for git mv

This commit is contained in:
Yaksh Bariya 2021-07-16 16:06:05 +05:30
parent 9d0d0b81fd
commit 54476d583b
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -1547,7 +1547,10 @@ complete -c git -n '__fish_git_using_command mergetool' -s O -d 'Process files i
### mv
complete -c git -n __fish_git_needs_command -a mv -d 'Move or rename a file, a directory, or a symlink'
# TODO options
complete -f -c git -n '__fish_git_using_command mv' -s f -l force -d 'Force rename/moving even if target exists'
complete -f -c git -n '__fish_git_using_command mv' -s k -d 'Skip rename/move which can lead to error'
complete -f -c git -n '__fish_git_using_command mv' -s n -l dry-run -d 'Only show what would happen'
complete -f -c git -n '__fish_git_using_command mv' -s v -l verbose -d 'Report names of files as they are changed'
### notes
set -l notescommands add copy append edit show merge remove # list prune get-ref