summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2012-11-14 01:49:30 +0100
committerJunio C Hamano <gitster@pobox.com>2012-11-14 13:45:38 -0800
commit585b96bd4c55e587b7736063125d06bf46e39d18 (patch)
tree453438a7deaa6446f182715d5cd172d2de26c80c /contrib
parent8c7a786b6c8eae8eac91083cdc9a6e337bc133b0 (diff)
downloadgit-585b96bd4c55e587b7736063125d06bf46e39d18.tar.gz
completion: remove 'help' duplicate from porcelain commands
The list of all git commands is computed from the output of 'git help -a', which already includes 'help', so there is no need to explicitly add it once more when computing the list of porcelain commands. Note that 'help' wasn't actually offered twice because of this, because Bash filters duplicates from possible completion words. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index be800e09bd..5e23ec074b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -585,7 +585,7 @@ __git_list_porcelain_commands ()
{
local i IFS=" "$'\n'
__git_compute_all_commands
- for i in "help" $__git_all_commands
+ for i in $__git_all_commands
do
case $i in
*--*) : helper pattern;;