r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.36k stars 160 forks source link

Run specific code after git pulled a directory #838

Open rodrgz opened 2 years ago

rodrgz commented 2 years ago

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.

Saijin-Naib commented 2 years ago

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