summaryrefslogtreecommitdiff
path: root/t/t9902-completion.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-28 22:21:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-28 22:21:00 (GMT)
commite90020cdb3273af3b0c7915c0aacf16b19bbf994 (patch)
tree7877275ba126cfe2cea62bfb9f6ec33c3680bf14 /t/t9902-completion.sh
parenta3fbb2350dcd2d843d1d90b663521222aceb25fe (diff)
parentb7be4366ea9af9a6947a8be0ebe6a63ff5259b6a (diff)
downloadgit-e90020cdb3273af3b0c7915c0aacf16b19bbf994.zip
git-e90020cdb3273af3b0c7915c0aacf16b19bbf994.tar.gz
git-e90020cdb3273af3b0c7915c0aacf16b19bbf994.tar.bz2
Merge branch 'fc/git-prompt-script'
Split a rather heavy-ish "git completion" script out to create a separate "git prompting" script, to help lazy-autoloading of the completion part while making prompting part always available.
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-xt/t9902-completion.sh14
1 files changed, 1 insertions, 13 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 256e6a0..92d7eb4 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -3,21 +3,9 @@
# Copyright (c) 2012 Felipe Contreras
#
-if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
- # we are in full-on bash mode
- true
-elif type bash >/dev/null 2>&1; then
- # execute in full-on bash mode
- unset POSIXLY_CORRECT
- exec bash "$0" "$@"
-else
- echo '1..0 #SKIP skipping bash completion tests; bash not available'
- exit 0
-fi
-
test_description='test bash completion'
-. ./test-lib.sh
+. ./lib-bash.sh
complete ()
{