git: add basic tab completion support

Trying to use git w/o tab completion is especially annoying if
you are used to using it elsewhere -- "whatchanged" is simply
too annoying to type out in full more than once.

(From OE-Core rev: 3c5285237dece0af594e74926e6f4f02ca81f715)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Gortmaker
2015-02-10 14:17:38 -05:00
committed by Richard Purdie
parent 9aafb02831
commit 675aa5f57a

View File

@@ -38,6 +38,8 @@ do_install () {
install -t ${D}/${mandir}/man1 ${WORKDIR}/man1/*
install -t ${D}/${mandir}/man5 ${WORKDIR}/man5/*
install -t ${D}/${mandir}/man7 ${WORKDIR}/man7/*
install -d ${D}/${datadir}/bash-completion/completions/
install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git
}
perl_native_fixup () {
@@ -94,6 +96,10 @@ PERLTOOLS = " \
${datadir}/git-core/templates/hooks/pre-rebase.sample \
"
# Basic tab completion support
PACKAGES =+ "${PN}-bash-completion"
FILES_${PN}-bash-completion = "${datadir}/bash-completion/completions/*"
# Git tools requiring perl
PACKAGES =+ "${PN}-perltools"
FILES_${PN}-perltools += " \