git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7f94b78
)
completion: bash: improve function detection
author
Felipe Contreras
<redacted>
Wed, 30 Dec 2020 23:29:48 +0000
(17:29 -0600)
committer
Junio C Hamano
<redacted>
Mon, 4 Jan 2021 23:25:56 +0000
(15:25 -0800)
1. We should quote the argument
2. We don't need two redirections
3. A safeguard for arguments (-a) would be good
Suggested-by: René Scharfe <redacted>
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 869c73ee2c141ec52807b9734b1195a258aaf09d..1150d4bf4427d398ce08942b74cb090b83343cd2 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-3359,7
+3359,7
@@
__git_support_parseopt_helper () {
}
__git_have_func () {
- declare -f
$1 >/dev/null 2>/dev/null
+ declare -f
-- "$1" >/dev/null 2>&1
}
__git_complete_command () {
git clone https://git.99rst.org/PROJECT