Skip to main content

Add your description here

Project description

smflow

Tools and git hooks to make it easier to work with submodules are updated frequently, enable a sort of virtual mono repo.

Usage

requires uv to be installed

Install with uv tool install smflow

Then from your parent project with submodules run:

smflow init

Details

smflow init will:

Git hooks

  • Automatically attach heads and reset submodules to the correct commit when you checkout a branch in the parent repository.
  • Automatically update .gitmodules when you change branches in the children.

Git submodule settings

smflow wil set the following git settings:

git config submodule.recurse true

To automatically checkout the submodules when you change branch in the parent.

git config push.recurseSubmodules on-demand

To automatically push changes in children when you try to push parent repository, and it references child commits that are not present on their origin yet (only works if parent and child have identical branch names). Otherwise, it will warn you and suggest first pushing the child repository.

Notes

  • smflow does not currently support recursive submodules, i.e. submodules inside submodules.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smflow-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smflow-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file smflow-0.1.0.tar.gz.

File metadata

  • Download URL: smflow-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for smflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd9d77e2389a0692239b10e8ee06b71360c29c835a785c5182d94803d0811bba
MD5 1a08c49ae1ca515948de635bb7fc068f
BLAKE2b-256 37c54d437d789b400ad2ef3706b2431e665f6d01a25c3bee8de207577332f70d

See more details on using hashes here.

File details

Details for the file smflow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: smflow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for smflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aec1c9b82d1254d507614eaa33da9df823c83878a58d44196f6d8ca0ae4510c
MD5 af7373d6ee2f57357b1ed5d812b4c42e
BLAKE2b-256 0a97c0d031465471cafe299273cf7164a8dfe0874b041e9517481156cc302051

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page