I've a folder with many git repos. I'm looking for a way to iterate over all the repos and do some fancy listing with a bash function...
According to the documentation, the argument to -c is evaluated by /bin/sh, so if you place your fancy function into a file named functions.sh, then you could do something like:
repo forall -c '. /path/to/functions.sh; myfunction'
Assuming that /bin/sh on your system is actually Bash, or if not:
repo forall -c 'bash -c ". /path/to/functions.sh; myfunction"'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With