From 79a9c0e0f2160a0fb3fe0a974f62d2bfdd6fb7a6 Mon Sep 17 00:00:00 2001 From: may <63159454+m4rch3n1ng@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:00:17 +0200 Subject: [PATCH] add completions for git diff --color-moved and --color-moved-ws (#10698) --- share/completions/git.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index ac8d52f22..ad9bb417f 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -927,7 +927,8 @@ complete -c git -n '__fish_git_using_command diff show range-diff' -l abbrev -d complete -c git -n '__fish_git_using_command diff show range-diff' -l binary -d 'Output a binary diff that can be applied with "git-apply"' complete -c git -n '__fish_git_using_command diff show range-diff' -l check -d 'Warn if changes introduce conflict markers or whitespace errors' complete -c git -n '__fish_git_using_command diff show range-diff' -l color -d 'Show colored diff' -complete -c git -n '__fish_git_using_command diff show range-diff' -l color-moved -d 'Moved lines of code are colored differently' +complete -x -c git -n '__fish_git_using_command diff show range-diff' -l color-moved -d 'Moved lines of code are colored differently' -a 'no default plain blocks zebra dimmed-zebra' +complete -x -c git -n '__fish_git_using_command diff show range-diff' -l color-moved-ws -d 'Ignore whitespace when using --color-moved' -a 'no ignore-space-at-eol ignore-space-change ignore-all-space allow-indentation-change' complete -c git -n '__fish_git_using_command diff show range-diff' -l color-words -d 'Equivalent to --word-diff=color plus --word-diff-regex=' complete -c git -n '__fish_git_using_command diff show range-diff' -l compact-summary -d 'Output a condensed summary of extended header information' complete -c git -n '__fish_git_using_command diff log show range-diff' -l dst-prefix -d 'Show the given destination prefix instead of "b/"'