From 072dbfd6ede0be33c1e72748f133973c401be069 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 27 Sep 2022 18:49:22 -0500 Subject: [PATCH] Remove `__fish_seen_argument_from` Despite its somewhat misleading name, `__fish_seen_argument` can already handle multiple arguments in one go and doesn't need a wrapper function! --- share/completions/git.fish | 2 +- share/functions/__fish_seen_argument_from.fish | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 share/functions/__fish_seen_argument_from.fish diff --git a/share/completions/git.fish b/share/completions/git.fish index 7567ce128..2c0c15ded 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -2292,7 +2292,7 @@ complete -f -c git -n '__fish_git_using_command for-each-ref' -l count -d "Limit set -l for_each_ref_interpreters shell perl python tcl for intr in $for_each_ref_interpreters complete -f -c git -n '__fish_git_using_command for-each-ref' \ - -n "not __fish_seen_argument_from --$for_each_ref_interpreters" \ + -n "not __fish_seen_argument --$for_each_ref_interpreters" \ -l $intr -d "%(fieldname) placeholders are $intr scripts" end complete -f -c git -n '__fish_git_using_command for-each-ref' -x -l format -d "Format string with %(fieldname) placeholders" diff --git a/share/functions/__fish_seen_argument_from.fish b/share/functions/__fish_seen_argument_from.fish deleted file mode 100644 index 2dbdeacb7..000000000 --- a/share/functions/__fish_seen_argument_from.fish +++ /dev/null @@ -1,8 +0,0 @@ -function __fish_seen_argument_from - for arg in $argv - if __fish_seen_argument -- $arg - return 0 - end - end - return 1 -end