[PATCH v2 11/26] completion: bash: simplify equal suffix check
From: Felipe Contreras <hidden>
Date: 2020-11-10 21:22:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Felipe Contreras <hidden>
Date: 2020-11-10 21:22:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
We know the prefix is already '--no-', there's no need to check for the first '--'. Signed-off-by: Felipe Contreras <redacted> --- contrib/completion/git-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index bb1250f10c..3f684cfe59 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash@@ -335,7 +335,7 @@ __gitcomp () c="$c${4-}" if [[ $c == "$cur_"* ]]; then case $c in - --*=|*.) ;; + *=|*.) ;; *) c="$c " ;; esac COMPREPLY[i++]="${2-}$c"
--
2.29.2