Running Roborev on a Branch if There Is New Content
I tend to use LLM coding agents in the cloud, and then roborev locally to assess the code. This bash command pulls from git, and runs roborev only if changes were pulled
before=$(git rev-parse HEAD)
git pull
after=$(git rev-parse HEAD)
[ "$before" != "$after" ] && roborev review --branch --wait
I use roborev tui --repo when working locally, which gives you a nice CLI interface to keep track of multipe branches. But if the code lives in github then it adds too much clicking. roborev review --branch --wait will print the output stright to the CLI, which is often all I need.
- before=$(git rev-parse HEAD)
- make a note of the github hash before I start
- git pull
- get the latest code from git
- after=$(git rev-parse HEAD)
- make a note of the github hash after the pull
- [ "$before" != "$after" ]
- has the hash changed?
- &&
- yes; then carry on
- roborev review --branch --wait
- review the code with roborev
Simple yet effective.
Got thoughts on this post? Join the conversation on Mastodon!