A lightweight wrapper around git subtrees that lets you work with many subtrees at once
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-chainsaw-0.1.11.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file git-chainsaw-0.1.11.tar.gz
.
File metadata
- Download URL: git-chainsaw-0.1.11.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8dce476439e20319b8f6704b65254c9cc78b3a39a647c0cac6f751da0f1302 |
|
MD5 | be554ea567490611e9c34755aa3f7ac4 |
|
BLAKE2b-256 | 14cf9558e6b7fd44e5fd2ee488aa5f89f1a0546c5fc92e48b8046acba5119e4c |
File details
Details for the file git_chainsaw-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: git_chainsaw-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 971f16810a52b9e5c2c67a238508cf6257e85e7a06033e0acc760b63f38c6d10 |
|
MD5 | a7719ca3ee0ce93ced005f126e0e0156 |
|
BLAKE2b-256 | 01801476d015c3d078209817ad6e895c0227c384e9d20ee0e116456c16848aa2 |