topgrade
topgrade copied to clipboard
Run specific code after git pulled a directory
Can be interesting to run specific code like builds and installs (meson build, ninja -C build install, ...) or a shell script in a folder that was git pulled with success. This would improve the upgrade experience for those who compile some things.
Yeah, this would be incredible.
There are a number of git repositories I have cloned locally which I use topgrade to pull latest commits to.
However, I also want/need to keep my forks of them in-step, so I manually cd to each directory and run a shell script/alias to do that:
git fetch upstream && git merge upstream/master master && git push