From 624e76ae89676f0038efbcfff9df6622299fce8b Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Fri, 20 Dec 2019 16:57:00 -0800 Subject: [PATCH] Added the --cleanup option completion for the git commit command --- share/completions/git.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index 83586f6a1..5c340a421 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1016,6 +1016,11 @@ complete -f -c git -n '__fish_git_using_command commit' -l fixup -d 'Fixup commi complete -f -c git -n '__fish_git_using_command commit' -l squash -d 'Squash commit to be used with rebase --autosquash' complete -c git -n '__fish_git_using_command commit' -l reset-author -d 'When amending, reset author of commit to the committer' complete -x -c git -n '__fish_git_using_command commit' -l author -d 'Override the commit author' +complete -x -c git -n '__fish_git_using_command commit' -l cleanup -a "strip\t'Leading/trailing whitespace/empty lines, #commentary' + whitespace\t'Like strip but keep #commentary' + verbatim\t'Do not change the message' + scissors\t'Like whitespace but also remove after scissor lines' + default\t'Like strip if the message is to be edited, whitespace otherwise'" -d 'How to clean up the commit message' complete -x -c git -n '__fish_git_using_command commit' -l date -d 'Override the author date' complete -x -c git -n '__fish_git_using_command commit' -s m -l message -d 'Use the given message as the commit message' complete -f -c git -n '__fish_git_using_command commit' -l no-edit -d 'Use the selected commit message without launching an editor'