From a5e665cd811c9cdd92b176d0ff8ccd9f71cc69e5 Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Sun, 28 Jun 2020 10:13:34 -0700 Subject: [PATCH] Add completions for "empty" options to git-commit --- share/completions/git.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index 580f94d07..0dea36ed2 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1063,6 +1063,8 @@ complete -x -c git -n '__fish_git_using_command commit' -l date -d 'Override the 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' complete -f -c git -n '__fish_git_using_command commit; and __fish_contains_opt fixup squash' -k -a '(__fish_git_recent_commits)' +complete -f -c git -n '__fish_git_using_command commit' -l allow-empty -d 'Create a commit with no changes' +complete -f -c git -n '__fish_git_using_command commit' -l allow-empty-message -d 'Create a commit with no commit message' # TODO options ### count-objects