/smartsquash

Makes daily git workflows easier, automates rebases or fixups

Primary LanguagePythonMIT LicenseMIT

smartsquash

PyPI PyPI - License Code style: black

This is still in testing phase.

Makes daily git workflows easier, automates rebases or fixups.

build

poetry install --no-dev --no-root
poetry build

installation

pip3 install smartsquash

usage

usage: sq [-h] [--target-branch TARGET_BRANCH] [--repo REPO] [--dry] [-s] [--no-add]

optional arguments:
  -h, --help            show this help message and exit
  --target-branch TARGET_BRANCH
                        Specify branch to target. Default is 'master'
  --repo REPO           Specify repo to modify. Uses pwd by default
  --dry                 Run dry
  -s, --squash          Squash similar commits on your feature branch
  --no-add              Don't add modified files to staging area

run tests

poetry run coverage run --source . -m pytest  
poetry run coverage report