-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.md2rst
76 lines (52 loc) · 2.35 KB
/
README.md2rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Parallel Foreach Submodule
==========================
|PyPI Version| |PyPI Compatibility| |PyPI License| |Codacy Badge| |Build
Status|
Parallel Foreach Submodule (PFS) is a tool for “git submodule foreach”
execution in parallel.
The origin of the tool is the following question in Stack Overflow:
👀 `Execute “git submodule foreach” in
parallel <https://stackoverflow.com/a/50178665/9739532>`__
What can I do with PFS?
~~~~~~~~~~~~~~~~~~~~~~~
- Execute git submodule foreach in parallel
- Use it from terminal when it is installed
- Multiplatform execution (it is developed in Python)
Installation
~~~~~~~~~~~~
You can install or upgrade PFS with:
``$ pip install pfs --upgrade``
Or you can install from source with:
.. code:: bash
$ git clone https://github.com/RDCH106/parallel_foreach_submodule.git --recursive
$ cd parallel_foreach_submodule
$ pip install .
Quick example
~~~~~~~~~~~~~
.. code:: bash
$ pfs -p "D:\project" -c "git pull origin" -j 8
The example executes command ``git pull origin`` for each submdoule in
``D:\project`` using 8 threads.
Shortcuts
~~~~~~~~~
List of shortcuts or aliases to write faster some usual operations
- ``pfs --pull`` ~ ``pfs -c "git pull origin"``
- ``pfs --status`` ~ ``pfs -c "git status"``
- ``pfs --pending`` ~
``pfs -c "git log <since origin/current>..<until current>"``
⚠️ Shortcuts only show repositories affected with changes, use
``--verbose`` for full log
Help
~~~~
Run the following command to see all options available:
``pfs --help`` or ``pfs -h``
.. |PyPI Version| image:: https://img.shields.io/pypi/v/pfs.svg
:target: https://pypi.python.org/pypi/pfs
.. |PyPI Compatibility| image:: https://img.shields.io/pypi/pyversions/pfs.svg
:target: https://pypi.python.org/pypi/pfs
.. |PyPI License| image:: https://img.shields.io/pypi/l/pfs.svg
:target: https://github.com/RDCH106/parallel_foreach_submodule/blob/master/LICENSE
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/9000e198e34c4f93a8320942e5b8524e
:target: https://www.codacy.com/app/RDCH106/parallel_foreach_submodule?utm_source=github.com&utm_medium=referral&utm_content=RDCH106/parallel_foreach_submodule&utm_campaign=Badge_Grade
.. |Build Status| image:: https://travis-ci.org/RDCH106/parallel_foreach_submodule.svg?branch=master
:target: https://travis-ci.org/RDCH106/parallel_foreach_submodule