NOTICE: This Project is under development, and functionalities have been tested on MacOS only.
This project ships 2 things
- a script used in
post-commit
hook - 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 msg
in 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.
npm install -g repo-steward
rp init
This step installs the rp
command, and sets up script in post-commit
hook.
rp --help
rp help <command>
rp auto-update --disable
npm uninstall -g repo-steward
-
Download auto-update script
-
Run
chmod +x
for this script -
Add the path to the script in your global
post-commit
file. 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!
This is my very first CLI application, any advices and PRs are welcome!
pnpm i
npm run watch