Skip to main content

Chainsaw

A lightweight wrapper around git subtrees that lets you work with many subtrees at once

Installation

pip install git-chainsaw

Dependencies

  • git v1.7.11 or above
  • make sure the git command is recognized wherever you plan to run this
  • python3 + pip

Usage

Example chainsaw.json

[
    {
        "prefix": "bingo",
        "remote": "https://github.com/nasa/bingo.git",
        "branch": "master"
    },
    {
        "prefix": "trick",
        "remote": "https://github.com/nasa/trick.git",
        "branch": "master"
    }
]

Adding subtrees:

# From a predefined chainsaw.json file
chainsaw add --all [--squash]

# From scratch (Subtrees will be added to chainsaw.json)
chainsaw add bingo https://github.com/nasa/bingo.git master [--squash]

Updating subtrees:

# Pull specific subtrees only
chainsaw pull bingo trick [etc.] [--squash]

# Pull changes from all subtrees
chainsaw pull --all [--squash]

Updating subtree remotes:

# Push changes for specific subtrees only
chainsaw push bingo trick [etc.]

# Push changes for all subtrees
chainsaw push --all

List subtrees:

# Print the prefix of each subtree found by git log
chainsaw ls

# Graph subtree history
chainsaw graph

Metadata

Release files for git-chainsaw 0.1.11

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

Source distribution (sdist)

Source distribution for git-chainsaw 0.1.11
File Size Uploaded
git-chainsaw-0.1.11.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-chainsaw 0.1.11
File Interpreter ABI Platform
git_chainsaw-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / git-chainsaw-0.1.11.tar.gz

Download URL git-chainsaw-0.1.11.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf8dce476439e20319b8f6704b65254c9cc78b3a39a647c0cac6f751da0f1302
BLAKE2b-256 checksum
How to use checksums
14cf9558e6b7fd44e5fd2ee488aa5f89f1a0546c5fc92e48b8046acba5119e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release files / git_chainsaw-0.1.11-py3-none-any.whl

Download URL git_chainsaw-0.1.11-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
971f16810a52b9e5c2c67a238508cf6257e85e7a06033e0acc760b63f38c6d10
BLAKE2b-256 checksum
How to use checksums
01801476d015c3d078209817ad6e895c0227c384e9d20ee0e116456c16848aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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