repo-steward
v1.2.1
Published
1. auto commit in super project when running `git commit -m msg` in the submodule. 2. stop commit when entering `ROOT_SUPER_PROJECT`
Maintainers
Readme
NOTICE: This Project is under development, and functionalities have been tested on MacOS only.
Table of Content
Overview
This project ships 2 things
- a script used in
post-commithook - a CLI command used to control script behavior
By using this script, you can
- commit and push in super-project automatically after running
git commit -m msgin it's submodule - stop auto commit in super-project when the path matches
$ROOT_SUPER_PROJECT
If you want to use the script without CLI, you can follow the setup-script-only guide.
Installation
npm install -g repo-steward
rp initThis step installs the rp command, and sets up script in post-commit hook.
Usage
rp --help
rp help <command>Uninstall
rp auto-update --disable
npm uninstall -g repo-stewardSetup Script Only
Download auto-update script
Run
chmod +xfor this scriptAdd the path to the script in your global
post-commitfile. For how to setup git hooks globally, checkout this answer.#!/bin/sh path-to-the-downloaded-script/auto-update-script
Now, try to commit in a submodule and see what's happened in it's super-project!
Development
This is my very first CLI application, any advices and PRs are welcome!
pnpm i
npm run watch