From 8cac424ecc3f4c6fe6566d7723c3b3f1a4452891 Mon Sep 17 00:00:00 2001 From: liquor <1692257904@qq.com> Date: Tue, 14 Apr 2020 19:30:34 +0800 Subject: [PATCH] setup bash completion --- git.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/git.spec b/git.spec index a5da50b..25b986f 100644 --- a/git.spec +++ b/git.spec @@ -1,7 +1,7 @@ %global gitexecdir %{_libexecdir}/git-core Name: git Version: 2.23.0 -Release: 12 +Release: 13 Summary: A popular and widely used Version Control System License: GPLv2+ or LGPLv2.1 URL: https://git-scm.com/ @@ -171,6 +171,10 @@ install -p -m 644 README.md %{buildroot}%{_pkgdocdir} install -p -m 644 gitweb/INSTALL %{buildroot}%{_pkgdocdir}/INSTALL.gitweb install -p -m 644 gitweb/README %{buildroot}%{_pkgdocdir}/README.gitweb +#setup bash completion +install -Dpm 644 contrib/completion/git-completion.bash %{buildroot}%{_datadir}/bash-completion/completion/git +ln -s git %{buildroot}%{_datadir}/bash-completion/completion/gitk + # install contrib to git-core mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion mv contrib/hooks/multimail/git_multimail{.py,} @@ -221,6 +225,7 @@ make test %files -f git-bin-files %defattr(-,root,root) %{_datadir}/git-core/ +%{_datadir}/bash-completion/completion %doc README.md %license LGPL-2.1 COPYING @@ -271,8 +276,13 @@ make test %{_mandir}/man7/git*.7.* %changelog -* Thu Mar 19 2020 openEuler Buildteam - 2.2 -3.0-12 +* Tue Apr 14 2020 openEuler Buildteam - 2.23.0-13 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:setup bash completion + +* Thu Mar 19 2020 openEuler Buildteam - 2.23.0-12 - skip updating the preference during running test suite * Sat Mar 14 2020 openEuler Buildteam - 2.23.0-11 -- Gitee