Skip to main content

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

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:

$ git clone https://github.com/stt-systems/parallel_foreach_submodule.git --recursive
$ cd parallel_foreach_submodule
$ pip install .

Quick example

$ 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>"
  • pfs --in-branch ~ pfs -c "IF (git rev-parse --abbrev-ref HEAD) == branch"
  • pfs --not-in-branch ~ pfs -c "IF (git rev-parse --abbrev-ref HEAD) != branch"

⚠️ 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

Release files for pfs 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pfs 0.6.1
File Size Uploaded
pfs-0.6.1.tar.gz 9.0 kB Details

Release files / pfs-0.6.1.tar.gz

Download URL pfs-0.6.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9c1c344495ca225a2ff95f20f3919f287423a38c1d5457a5afb7334eb575a319
BLAKE2b-256 checksum
How to use checksums
a1290d1b7e9f536194380ac82e54816983212d3a492e712a695c848c8eef1960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.6.1 This release

1 release file

0.5.16

1 release file

0.5.11

1 release file

0.5.1

1 release file

0.4.10

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.5

1 release file

0.2.1

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page