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`
Downloads
40
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-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.
Installation
npm install -g repo-steward
rp init
This 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-steward
Setup Script Only
Download auto-update script
Run
chmod +x
for this scriptAdd 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!
Development
This is my very first CLI application, any advices and PRs are welcome!
pnpm i
npm run watch