diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-18 06:19:31 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 06:19:31 +0000 |
commit | 198a552babad05250f2f24abc9184bea02ff65ba (patch) | |
tree | a760ffa4b90a7f26fa93f6613c2bd890c5baf026 | |
parent | 3c3a5e188cfe005ebc443472e0653a938a0245e7 (diff) |
automatic import of python-gitools
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-gitools.spec | 336 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 338 insertions, 0 deletions
@@ -0,0 +1 @@ +/Gitools-1.5.1.tar.gz diff --git a/python-gitools.spec b/python-gitools.spec new file mode 100644 index 0000000..1919122 --- /dev/null +++ b/python-gitools.spec @@ -0,0 +1,336 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Gitools +Version: 1.5.1 +Release: 1 +Summary: A handy tool to modify git history +License: MIT +URL: https://github.com/AliRezaBeigy/Gitools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/2f/6c2f34ecab24ccb24c27a5f2d12dff7bf18fdd036d705860c444b17c1c27/Gitools-1.5.1.tar.gz +BuildArch: noarch + + +%description +# Gitools + + +[](https://github.com/AliRezaBeigy/Gitools/blob/master/LICENSE) +[](http://makeapullrequest.com) + + + +A handy tool to modify git history + +## Requirement + +- Python 3 + +- Knowing following rule: + - **Do not change a shared history** + +## Quick Start + +You need to install python to use this app, so you can simply download python from [Official Site](https://www.python.org/downloads) + +Now you should install Gitools as global app: + +```shell +$ pip install -U Gitools +or +$ python -m pip install -U Gitools +``` + +**Use `-U` option to update Gitools to the last version** + +:warning: **Do not change a shared history** + +## Usage + +```shell +$ gitools + +$ gitools -c [commit_count] +``` + +Example: + +```shell +$ gitools -c 100 + +$ gitools -ch ca895a914fc551f50301b83311c803846454bc21 +``` + +For more details: + +```text +$ gitools -h +usage: gitools [-h] [-c COUNT] [-an AUTHOR_NAME] [-ae AUTHOR_EMAIL] [-cd COMMIT_DATE] + [-ch COMMIT_HASH] [-cm COMMIT_MESSAGE] [-m MODE] [-i INPUT] + +optional arguments: + -h --help show this help message and exit + -c --count number of commit to show + -cm --commit-message commit message + -ae --author-email author email + -an --author-name author name + -cd --commit-date commit date + -ch --commit-hash commit hash + -i --input git directory + -m --module select module to do something +``` + +## Features + +- Modify Commit Author +- Modify Commit Message +- Modify Commit Date Time + +## Contributions + +This project is based on git filter-branch. As [indygreg](https://twitter.com/indygreg) calls it "the swiss-army knife of Git history rewriting". + +If you're interested in contributing to this project, first of all I would like to extend my heartfelt gratitude. + +Please feel free to reach out to me if you need help. My Email: AliRezaBeigyKhu@gmail.com +Telegram: [@AliRezaBeigy](https://t.me/AliRezaBeigyKhu) + +## LICENSE + +MIT + + + + +%package -n python3-Gitools +Summary: A handy tool to modify git history +Provides: python-Gitools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Gitools +# Gitools + + +[](https://github.com/AliRezaBeigy/Gitools/blob/master/LICENSE) +[](http://makeapullrequest.com) + + + +A handy tool to modify git history + +## Requirement + +- Python 3 + +- Knowing following rule: + - **Do not change a shared history** + +## Quick Start + +You need to install python to use this app, so you can simply download python from [Official Site](https://www.python.org/downloads) + +Now you should install Gitools as global app: + +```shell +$ pip install -U Gitools +or +$ python -m pip install -U Gitools +``` + +**Use `-U` option to update Gitools to the last version** + +:warning: **Do not change a shared history** + +## Usage + +```shell +$ gitools + +$ gitools -c [commit_count] +``` + +Example: + +```shell +$ gitools -c 100 + +$ gitools -ch ca895a914fc551f50301b83311c803846454bc21 +``` + +For more details: + +```text +$ gitools -h +usage: gitools [-h] [-c COUNT] [-an AUTHOR_NAME] [-ae AUTHOR_EMAIL] [-cd COMMIT_DATE] + [-ch COMMIT_HASH] [-cm COMMIT_MESSAGE] [-m MODE] [-i INPUT] + +optional arguments: + -h --help show this help message and exit + -c --count number of commit to show + -cm --commit-message commit message + -ae --author-email author email + -an --author-name author name + -cd --commit-date commit date + -ch --commit-hash commit hash + -i --input git directory + -m --module select module to do something +``` + +## Features + +- Modify Commit Author +- Modify Commit Message +- Modify Commit Date Time + +## Contributions + +This project is based on git filter-branch. As [indygreg](https://twitter.com/indygreg) calls it "the swiss-army knife of Git history rewriting". + +If you're interested in contributing to this project, first of all I would like to extend my heartfelt gratitude. + +Please feel free to reach out to me if you need help. My Email: AliRezaBeigyKhu@gmail.com +Telegram: [@AliRezaBeigy](https://t.me/AliRezaBeigyKhu) + +## LICENSE + +MIT + + + + +%package help +Summary: Development documents and examples for Gitools +Provides: python3-Gitools-doc +%description help +# Gitools + + +[](https://github.com/AliRezaBeigy/Gitools/blob/master/LICENSE) +[](http://makeapullrequest.com) + + + +A handy tool to modify git history + +## Requirement + +- Python 3 + +- Knowing following rule: + - **Do not change a shared history** + +## Quick Start + +You need to install python to use this app, so you can simply download python from [Official Site](https://www.python.org/downloads) + +Now you should install Gitools as global app: + +```shell +$ pip install -U Gitools +or +$ python -m pip install -U Gitools +``` + +**Use `-U` option to update Gitools to the last version** + +:warning: **Do not change a shared history** + +## Usage + +```shell +$ gitools + +$ gitools -c [commit_count] +``` + +Example: + +```shell +$ gitools -c 100 + +$ gitools -ch ca895a914fc551f50301b83311c803846454bc21 +``` + +For more details: + +```text +$ gitools -h +usage: gitools [-h] [-c COUNT] [-an AUTHOR_NAME] [-ae AUTHOR_EMAIL] [-cd COMMIT_DATE] + [-ch COMMIT_HASH] [-cm COMMIT_MESSAGE] [-m MODE] [-i INPUT] + +optional arguments: + -h --help show this help message and exit + -c --count number of commit to show + -cm --commit-message commit message + -ae --author-email author email + -an --author-name author name + -cd --commit-date commit date + -ch --commit-hash commit hash + -i --input git directory + -m --module select module to do something +``` + +## Features + +- Modify Commit Author +- Modify Commit Message +- Modify Commit Date Time + +## Contributions + +This project is based on git filter-branch. As [indygreg](https://twitter.com/indygreg) calls it "the swiss-army knife of Git history rewriting". + +If you're interested in contributing to this project, first of all I would like to extend my heartfelt gratitude. + +Please feel free to reach out to me if you need help. My Email: AliRezaBeigyKhu@gmail.com +Telegram: [@AliRezaBeigy](https://t.me/AliRezaBeigyKhu) + +## LICENSE + +MIT + + + + +%prep +%autosetup -n Gitools-1.5.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-Gitools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.1-1 +- Package Spec generated @@ -0,0 +1 @@ +45e9e15d21f4c35fc605f885983d4dae Gitools-1.5.1.tar.gz |