Add completions for git am

This commit is contained in:
Yaksh Bariya 2021-07-16 08:34:22 +05:30
parent 2e34852ded
commit 4c5f41531d
No known key found for this signature in database
GPG key ID: F7486BA7D3D27581

View file

@ -983,6 +983,46 @@ complete -c git -n '__fish_git_using_command add' -l ignore-missing -d 'Check if
complete -f -c git -n '__fish_git_using_command add' -a '(__fish_git_files modified untracked deleted unmerged modified-staged-deleted)'
# TODO options
### am
complete -F -c git -n __fish_git_needs_command -a am -d 'Apply a series of patches from a mailbox'
complete -f -c git -n '__fish_git_using_command am' -s s -l signoff -d 'Add a Signed-off-By trailer to commit message'
complete -f -c git -n '__fish_git_using_command am' -s k -l keep -d 'Pass -k to git mailinfo'
complete -f -c git -n '__fish_git_using_command am' -l keep-non-patch -d 'Pass -b to git mailinfo'
complete -f -c git -n '__fish_git_using_command am' -l keep-cr -d 'Pass --keep-cr to git mailsplit'
complete -f -c git -n '__fish_git_using_command am' -l no-keep-cr -d 'Override am.keepcr to false'
complete -f -c git -n '__fish_git_using_command am' -s c -l scissors -d 'Remove everything in body before scissors'
complete -f -c git -n '__fish_git_using_command am' -l no-scissors -d 'Ignore scissor lines'
complete -x -c git -n '__fish_git_using_command am' -l quoted-cr -a 'nowarn warn strip' -d 'Action when processed email message end with CRLF instead of LF'
complete -f -c git -n '__fish_git_using_command am' -s m -l message-id -d 'Pass the -m flag to git mailinfo'
complete -f -c git -n '__fish_git_using_command am' -l no-messageid -d 'Do not add message id to commit message'
complete -f -c git -n '__fish_git_using_command am' -s q -l quiet -d 'Supress logs'
complete -f -c git -n '__fish_git_using_command am' -s u -l utf8 -d 'Pass -u to git mailinfo'
complete -f -c git -n '__fish_git_using_command am' -l no-utf8 -d 'Pass -n to git mailinfo'
complete -f -c git -n '__fish_git_using_command am' -s 3 -l 3way -d 'Fall back to three way merge on patch failure'
complete -f -c git -n '__fish_git_using_command am' -l no-3way -d 'Do not fall back to three way merge on patch failure'
complete -f -c git -n '__fish_git_using_command am' -l rerere-autoupdate -d 'Allow rerere to update index if possible'
complete -f -c git -n '__fish_git_using_command am' -l ignore-space-change -d 'Pass --ignore-space-change to git apply'
complete -f -c git -n '__fish_git_using_command am' -l ignore-whitespace -d 'Pass --ignore-whitespace to git apply'
complete -x -c git -n '__fish_git_using_command am' -l whitespace -a 'nowarn warn fix error error-all' -d 'Pass --whitespace git apply'
complete -x -c git -n '__fish_git_using_command am' -s C -d 'Pass -C to git apply'
complete -x -c git -n '__fish_git_using_command am' -s p -d 'Pass -p to git apply'
complete -F -c git -n '__fish_git_using_command am' -l directory -d 'Pass --directory to git apply'
complete -F -c git -n '__fish_git_using_command am' -l exclude -d 'Pass --exclude to git apply'
complete -F -c git -n '__fish_git_using_command am' -l include -d 'Pass --include to git apply'
complete -f -c git -n '__fish_git_using_command am' -l reject -d 'Pass --reject to git apply'
complete -x -f git -n '__fish_git_using_command am' -l patch-format -a 'mbox mboxrd stgit stgit-series hg' -d 'Specify the patch format'
complete -f -c git -n '__fish_git_using_command am' -s i -l interactive -d 'Run interactively'
complete -f -c git -n '__fish_git_using_command am' -l commiter-date-is-author-date -d 'Treat commiter date as author date'
complete -f -c git -n '__fish_git_using_command am' -l ignore-date -d 'Treat author date as commiter date'
complete -f -c git -n '__fish_git_using_command am' -l skip -d 'Skip current patch'
complete -x -c git -n '__fish_git_using_command am' -s S -l gpg-sign -a '(__fish_complete_gpg_key_id gpg)' -d 'Sign commits with gpg'
complete -f -c git -n '__fish_git_using_command am' -l no-gpg-sign -d 'Do not sign commits'
complete -f -c git -n '__fish_git_using_command am' -s r -l resolved -l continue -d 'Mark patch failures as resolved'
complete -x -c git -n '__fish_git_using_command am' -l resolvemsg -d 'Message to print when patch failure occurs'
complete -f -c git -n '__fish_git_using_command am' -l abort -d 'Abort l patch operation and restore branch'
complete -f -c git -n '__fish_git_using_command am' -l quit -d 'Abort without restoring branch'
complete -x -c git -n '__fish_git_using_command am' -l show-current-patch -a 'diff raw' -d 'Show message at which patch failures occured'
### checkout
complete -F -c git -n '__fish_git_using_command checkout; and contains -- -- (commandline -opc)'
complete -f -c git -n __fish_git_needs_command -a checkout -d 'Checkout and switch to a branch'
@ -1901,6 +1941,7 @@ complete -f -c git -n '__fish_git_using_command blame' -s w -d 'Ignore whitespac
complete -f -c git -n __fish_git_needs_command -a help -d 'Display help information about Git'
complete -f -c git -n '__fish_git_using_command help' -a '(__fish_git_help_all_concepts)'
complete -f -c git -n '__fish_git_using_command help' -a add -d 'Add file contents to the index'
complete -f -c git -n '__fish_git_using_command help' -a am -d 'Apply a series of patches from a mailbox'
complete -f -c git -n '__fish_git_using_command help' -a apply -d 'Apply a patch on a git index file and a working tree'
complete -f -c git -n '__fish_git_using_command help' -a archive -d 'Create an archive of files from a named tree'
complete -f -c git -n '__fish_git_using_command help' -a bisect -d 'Find the change that introduced a bug by binary search'